#include <string_u16.hpp>
|
| string_u16_rep () |
|
| string_u16_rep (int n) |
|
| ~string_u16_rep () |
|
int | expand_or_shrink_by (int delta) |
| expand (or shrink) string by delta, but do not release memory when string is shrinked.
|
|
void | resize (int n) |
| expand (or shrink) string to given length n, and try to release memory when string is shrinked.
|
|
void | reserve (int n) |
| reserve memory space to contain at least n word in the whole string. Do not affect length of string, and do not release memory when n is smaller than current space.
|
|
|
| concrete_struct () |
| Default constructor for the concrete object. Increments the reference count.
|
|
virtual | ~concrete_struct () |
| Virtual destructor for the concrete object. Decrements the reference count.
|
|
Definition at line 23 of file string_u16.hpp.
◆ string_u16_rep() [1/2]
lolly::data::string_u16_rep::string_u16_rep |
( |
| ) |
|
|
inline |
Definition at line 29 of file string_u16.hpp.
The list class represents a linked list.
◆ string_u16_rep() [2/2]
lolly::data::string_u16_rep::string_u16_rep |
( |
int | n | ) |
|
Definition at line 26 of file string_u16.cpp.
static constexpr int round_length(int n)
◆ ~string_u16_rep()
lolly::data::string_u16_rep::~string_u16_rep |
( |
| ) |
|
|
inline |
Definition at line 31 of file string_u16.hpp.
31 {
33 }
void tm_delete_array(C *Ptr)
◆ expand_or_shrink_by()
int lolly::data::string_u16_rep::expand_or_shrink_by |
( |
int | delta | ) |
|
expand (or shrink) string by delta, but do not release memory when string is shrinked.
- Returns
- string length before expansion
Definition at line 55 of file string_u16.cpp.
55 {
60}
void reserve(int n)
reserve memory space to contain at least n word in the whole string. Do not affect length of string,...
url delta(url base, url u)
◆ resize()
void lolly::data::string_u16_rep::resize |
( |
int | n | ) |
|
expand (or shrink) string to given length n, and try to release memory when string is shrinked.
- Note
- expand_or_shrink_by may be faster if memory space is reserved
Definition at line 31 of file string_u16.cpp.
31 {
39 }
40 else {
43 }
44 }
49 };
50 }
52}
◆ reserve()
void lolly::data::string_u16_rep::reserve |
( |
int | n | ) |
|
reserve memory space to contain at least n word in the whole string. Do not affect length of string, and do not release memory when n is smaller than current space.
Definition at line 63 of file string_u16.cpp.
63 {
69 }
73 }
74 }
75 else {
80 };
81 }
82}
◆ string_u16
int lolly::data::string_u16_rep::n |
|
private |
◆ a_N
int lolly::data::string_u16_rep::a_N |
|
private |
char16_t* lolly::data::string_u16_rep::a |
|
private |
The documentation for this class was generated from the following files: