Definition at line 45 of file String.h.
◆ Iterator
STL-like iterator.
Definition at line 49 of file String.h.
◆ StrRef() [1/5]
Initializes blank instance.
Definition at line 52 of file String.h.
◆ StrRef() [2/5]
StrRef |
( |
const Char * | chars, |
|
|
size_t | size ) |
throw | ( | ) | | | |
|
inline |
Full initialization.
Definition at line 59 of file String.h.
◆ StrRef() [3/5]
StrRef |
( |
const std::string & | data | ) |
|
throw | ( | ) | | | |
|
inline |
Full initialization.
Definition at line 66 of file String.h.
◆ StrRef() [4/5]
Explicit initialization.
Definition at line 73 of file String.h.
◆ StrRef() [5/5]
Initializes as clone of other instance.
Data referenced by clone is not copied. Instead both instances will refer to same text segment.
Definition at line 84 of file String.h.
◆ at()
const Char & at |
( |
size_t | index | ) |
const |
|
inline |
◆ begin()
◆ empty()
bool empty |
( |
| ) |
const |
throw | ( | ) | | | |
|
inline |
Indicates whether array of zero length.
Definition at line 91 of file String.h.
◆ end()
◆ items()
const Char * items |
( |
| ) |
const |
throw | ( | ) | | | |
|
inline |
Read-only content.
Definition at line 97 of file String.h.
◆ operator=()
Reinitializes from another instance.
Definition at line 155 of file String.h.
◆ operator[]()
const Char & operator[] |
( |
size_t | index | ) |
const |
throw | ( | ) | | | |
|
inline |
◆ reset() [1/2]
Resets reference to nothing.
Definition at line 121 of file String.h.
◆ reset() [2/2]
void reset |
( |
const Char * | chars, |
|
|
size_t | size ) |
throw | ( | ) | | | |
|
inline |
Updates data being referenced.
Definition at line 128 of file String.h.
◆ size()
size_t size |
( |
| ) |
const |
throw | ( | ) | | | |
|
inline |
Number of chars.
Definition at line 103 of file String.h.
◆ swap()
void swap |
( |
StrRef & | other | ) |
|
throw | ( | ) | | | |
|
inline |
Swaps content with other instance.
Definition at line 166 of file String.h.