#include <OnixS/CME/DropCopy/String.h>
|
| String () |
|
| String (const String &other) |
|
| String (const StringRef &strRef) |
|
| String (const std::string &stdStr) |
|
| String (const char *cStr) |
|
| String (const char *text, size_t textSize) |
|
| ~String () |
|
bool | empty () const |
|
size_t | size () const |
|
size_t | capacity () const |
|
const char * | data () const |
|
const char * | c_str () const |
|
iterator | begin () |
|
ConstIterator | begin () const |
|
iterator | end () |
|
ConstIterator | end () const |
|
char & | operator[] (size_t index) |
|
const char & | operator[] (size_t index) const |
|
char & | at (size_t index) |
|
const char & | at (size_t index) const |
|
void | reserve (size_t capacity) |
|
void | resize (size_t size) |
|
void | resize (size_t size, char filler) |
|
String & | insert (size_t offset, const char *text, size_t textSize) |
|
String & | append (const char *text, size_t textSize) |
|
String & | assign (const char *text, size_t textSize) |
|
String & | replace (size_t offset, size_t count, const char *text, size_t textSize) |
|
void | erase (size_t offset, size_t count) |
|
void | clear () |
|
| operator std::string () const |
|
bool | operator== (const String &other) const |
|
bool | operator!= (const String &other) const |
|
String & | operator= (const String &other) |
|
String & | operator= (const std::string &other) |
|
String & | operator= (const char *other) |
|
String & | operator= (char other) |
|
String & | operator+= (const String &text) |
|
String & | operator+= (const char *text) |
|
String & | operator+= (const std::string &text) |
|
String & | operator+= (char character) |
|
Definition at line 36 of file String.h.
Read-only access over characters.
Definition at line 43 of file String.h.
Read-write access over characters.
Definition at line 40 of file String.h.
Initializes empty string.
Initializes as copy of another instance.
Initializes as copy of what is referred by StringRef instance.
String |
( |
const std::string & |
stdStr | ) |
|
|
explicit |
Initializes as copy of std::string instance.
Initializes as copy of null-terminated C string.
String |
( |
const char * |
text, |
|
|
size_t |
textSize |
|
) |
| |
Initializes from sequence of give size.
Cleans up internal resources.
String& append |
( |
const char * |
text, |
|
|
size_t |
textSize |
|
) |
| |
Appends subsequence to the end.
String& assign |
( |
const char * |
text, |
|
|
size_t |
textSize |
|
) |
| |
Re-initializes instance with given string.
char & at |
( |
size_t |
index | ) |
|
|
inline |
Provides safe access to the character via its reference located at specified index.
Definition at line 252 of file String.h.
const char & at |
( |
size_t |
index | ) |
const |
|
inline |
Provides safe access to the character via its reference located at specified index.
Definition at line 262 of file String.h.
Points to the first element in the sequence.
Definition at line 222 of file String.h.
Points to the first element in the sequence.
Definition at line 227 of file String.h.
const char * c_str |
( |
| ) |
const |
|
inline |
Returns string as C string.
Definition at line 217 of file String.h.
size_t capacity |
( |
| ) |
const |
|
inline |
Number of characters that can be put into sequence without reallocating internal store.
Definition at line 207 of file String.h.
Erases all characters in the string.
const char * data |
( |
| ) |
const |
|
inline |
Direct read-only access to buffer which holds the sequence.
Definition at line 212 of file String.h.
Indicates whether sequence is empty.
Definition at line 197 of file String.h.
Points to the location succeeding the last element in the sequence.
Definition at line 232 of file String.h.
Points to the location succeeding the last element in the sequence.
Definition at line 237 of file String.h.
void erase |
( |
size_t |
offset, |
|
|
size_t |
count |
|
) |
| |
Erases subsequence of specified length at specified position.
String& insert |
( |
size_t |
offset, |
|
|
const char * |
text, |
|
|
size_t |
textSize |
|
) |
| |
Inserts subsequence at specified position.
operator std::string |
( |
| ) |
const |
|
inline |
Implicit conversion to std::string type.
Definition at line 272 of file String.h.
bool operator!= |
( |
const String & |
other | ) |
const |
Compares with other instance for inequality.
Appends other string to the end.
Definition at line 297 of file String.h.
String & operator+= |
( |
const char * |
text | ) |
|
|
inline |
Appends other string to the end.
Definition at line 302 of file String.h.
String & operator+= |
( |
const std::string & |
text | ) |
|
|
inline |
Appends other string to the end.
Definition at line 312 of file String.h.
String & operator+= |
( |
char |
character | ) |
|
|
inline |
Appends other string to the end.
Definition at line 317 of file String.h.
Reinitializes instance as copy of another one.
String & operator= |
( |
const std::string & |
other | ) |
|
|
inline |
Reinitializes instance as copy of another one.
Definition at line 277 of file String.h.
String & operator= |
( |
const char * |
other | ) |
|
|
inline |
Reinitializes instance as copy of another one.
Definition at line 282 of file String.h.
String & operator= |
( |
char |
other | ) |
|
|
inline |
Reinitializes instance as copy of another one.
Definition at line 292 of file String.h.
bool operator== |
( |
const String & |
other | ) |
const |
Compares with other instance for equality.
char & operator[] |
( |
size_t |
index | ) |
|
|
inline |
Reference to the character located at specified index.
- Note
- For a performance considerations does NOT check bounds of the character being accessed.
Definition at line 242 of file String.h.
const char & operator[] |
( |
size_t |
index | ) |
const |
|
inline |
Const reference to the character located at specified index.
- Note
- For a performance considerations does NOT check bounds of the character being accessed.
Definition at line 247 of file String.h.
String& replace |
( |
size_t |
offset, |
|
|
size_t |
count, |
|
|
const char * |
text, |
|
|
size_t |
textSize |
|
) |
| |
Replaces subsequence of specified length at specified position with the new subsequence.
void reserve |
( |
size_t |
capacity | ) |
|
Makes internal store to be capable of storing at least specified number of characters without necessity to reallocate it.
void resize |
( |
size_t |
size | ) |
|
Specifies new size for the sequence, appending or erasing elements as required.
void resize |
( |
size_t |
size, |
|
|
char |
filler |
|
) |
| |
Specifies new size for the sequence, appending or erasing elements as required.
The documentation for this class was generated from the following file: