|
| CoreString () |
|
| CoreString (const CoreString &str) |
|
| CoreString (const CoreBasicString &str) |
|
| CoreString (CoreString &&str) |
|
| CoreString (const char *str, size_t size=CORE_INVALID_INDEX_64) |
|
| ~CoreString () |
|
CoreString & | operator= (const CoreString &str) |
|
CoreString & | operator= (const CoreBasicString &str) |
|
CoreString & | operator= (CoreString &&str) |
|
CoreString & | operator= (const char *str) |
|
CoreString & | operator= (char c) |
|
void | set_data (const char *str, size_t size=CORE_INVALID_INDEX_64) |
|
void | clear () |
|
char & | front () |
|
char & | first () |
|
char & | back () |
|
char & | last () |
|
char & | operator[] (unsigned int index) |
|
void | append (const char *str) |
|
void | append (const CoreString &str) |
|
void | append_number_with_unit (double number, bool short_scale=true) |
| append a numeric value with a quantifier string unit (see CoreString::CountUnits) ex: 500000000 -> "500 millions"
|
|
void | replace (char token, char replacement) |
| Search for a character in the string and replace it with another.
|
|
void | remove_occurences (char token) |
| Remove all occurences of a character in string.
|
|
void | remove_last () |
|
void | make_title () |
|
void | make_identifier () |
|
void | upper_case () |
|
void | lower_case () |
|
void | camel_case () |
|
bool | is_identifier () const |
| returns true if the current string is an identifier-compliant string.
|
|
bool | is_number () const |
| returns true if the current string is a numeric value
|
|
CoreString | replace (const CoreString &token, const CoreString &replacement, bool case_sensitive=true) const |
| Search for a string token and replace it with replacement string token.
|
|
CoreString | sub_string (unsigned int start, unsigned int length) const |
|
CoreString | get_title () const |
| Builds and returns a "title string" from current string.
|
|
CoreString | get_identifier () const |
| Builds and returns an identifier-compliant string from current string.
|
|
CoreString | get_upper_case () const |
| Builds and returns an upper-case string from current string.
|
|
CoreString | get_lower_case () const |
| Builds and returns a lower-case string from current string.
|
|
CoreString | get_camel_case () const |
| Builds and returns a camel case string from current string.
|
|
CoreString | get_trim () const |
| Return a string without all white-space characters from the start and end of the current string.
|
|
CoreString | get_trim_left () const |
| Return a string without all white-space characters from the start of the current string.
|
|
CoreString | get_trim_right () const |
| Return a string without all white-space characters from the end of the current string.
|
|
size_t | get_memory_size () const |
|
size_t | get_serial_size () const |
|
bool | serialize (CoreSerial &serial) const |
|
bool | deserialize (CoreSerial &serial) |
|
CoreVector< CoreString > | split (const CoreString &separator, bool explicit_output=false) const |
| Split the string from the specified separators.
|
|
void | split (const CoreString &separator, CoreVector< CoreString > &slist, bool explicit_output=false) const |
| Split string into several strings each time a separator is found.
|
|
void | split_word (const CoreString &separator, CoreVector< CoreString > &slist, bool remove_blank=true) const |
| Split string into several strings, using a word separator (which can be a single character too).
|
|
CoreBasicStringIterator< false > | begin (void) |
|
CoreBasicStringIterator< false > | end (void) |
|
void | shrink_to_fit (void) |
|
size_t | capacity (void) const noexcept |
|
CoreString & | operator+= (const char *str) |
|
CoreString & | operator+= (const CoreString &str) |
|
CoreString & | operator+= (const CoreBasicString &str) |
|
CoreString & | operator+= (const void *p) |
|
CoreString & | operator+= (std::nullptr_t null) |
|
CoreString & | operator+= (bool b) |
|
CoreString & | operator+= (unsigned char uc) |
|
CoreString & | operator+= (char c) |
|
CoreString & | operator+= (short s) |
|
CoreString & | operator+= (unsigned short us) |
|
CoreString & | operator+= (int i) |
|
CoreString & | operator+= (unsigned int ui) |
|
CoreString & | operator+= (long l) |
|
CoreString & | operator+= (unsigned long ul) |
|
CoreString & | operator+= (long long ll) |
|
CoreString & | operator+= (unsigned long long ull) |
|
CoreString & | operator+= (float f) |
|
CoreString & | operator+= (double d) |
|
CoreString & | operator<< (const char *str) |
|
CoreString & | operator<< (const CoreString &str) |
|
CoreString & | operator<< (const CoreBasicString &str) |
|
CoreString & | operator<< (const void *p) |
|
CoreString & | operator<< (std::nullptr_t null) |
|
CoreString & | operator<< (bool b) |
|
CoreString & | operator<< (unsigned char uc) |
|
CoreString & | operator<< (char c) |
|
CoreString & | operator<< (short s) |
|
CoreString & | operator<< (unsigned short us) |
|
CoreString & | operator<< (int i) |
|
CoreString & | operator<< (unsigned int ui) |
|
CoreString & | operator<< (long l) |
|
CoreString & | operator<< (unsigned long ul) |
|
CoreString & | operator<< (long long ll) |
|
CoreString & | operator<< (unsigned long long ull) |
|
CoreString & | operator<< (float f) |
|
CoreString & | operator<< (double d) |
|
CoreString | operator+ (const char *str) const |
|
CoreString | operator+ (const CoreString &str) const |
|
CoreString | operator+ (const CoreBasicString &str) const |
|
CoreString | operator+ (const void *p) const |
|
CoreString | operator+ (std::nullptr_t null) const |
|
CoreString | operator+ (bool b) const |
|
CoreString | operator+ (unsigned char uc) const |
|
CoreString | operator+ (char c) const |
|
CoreString | operator+ (short s) const |
|
CoreString | operator+ (unsigned short us) const |
|
CoreString | operator+ (int i) const |
|
CoreString | operator+ (unsigned int ui) const |
|
CoreString | operator+ (long l) const |
|
CoreString | operator+ (unsigned long ul) const |
|
CoreString | operator+ (long long ll) const |
|
CoreString | operator+ (unsigned long long ull) const |
|
CoreString | operator+ (float f) const |
|
CoreString | operator+ (double d) const |
|
| operator bool () const |
|
| operator char () const |
|
| operator unsigned char () const |
|
| operator short () const |
|
| operator unsigned short () const |
|
| operator int () const |
|
| operator unsigned int () const |
|
| operator long () const |
|
| operator unsigned long () const |
|
| operator long long () const |
|
| operator unsigned long long () const |
|
| operator float () const |
|
| operator double () const |
|
| CoreBasicString (void) |
|
| CoreBasicString (const char *data, size_t length=CORE_INVALID_INDEX_64) |
|
bool | is_empty () const |
|
unsigned int | get_length () const |
|
unsigned int | get_count () const |
|
unsigned int | get_capacity () const |
|
const char * | get_data () const |
|
const char & | front () const |
|
const char & | first () const |
|
const char & | back () const |
|
const char & | last () const |
|
const char & | operator[] (unsigned int index) const |
|
bool | start_with (const CoreBasicString &str) const |
|
bool | end_with (const CoreBasicString &str) const |
|
bool | contains (const CoreBasicString &str) const |
|
unsigned int | count_occurences (char token) const |
|
unsigned int | find (const CoreBasicString &str, unsigned int start_index=0) const |
|
unsigned int | find (char str, unsigned int start_index=0) const |
|
unsigned int | rev_find (const CoreBasicString &str, unsigned int start_index=CORE_INVALID_INDEX) const |
|
unsigned int | rev_find (char c, unsigned int start_index=CORE_INVALID_INDEX) const |
|
bool | start_with (const char *str) const |
|
bool | end_with (const char *str) const |
|
bool | contains (const char *str) const |
|
unsigned int | find (const char *str, unsigned int start_index=0) const |
|
unsigned int | rev_find (const char *str, unsigned int start_index=CORE_INVALID_INDEX) const |
|
CoreBasicStringIterator< true > | begin (void) const |
|
CoreBasicStringIterator< true > | end (void) const |
|
bool | operator== (const CoreBasicString &str) const |
|
bool | operator== (const char *str) const |
|
bool | operator!= (const CoreBasicString &str) const |
|
bool | operator!= (const char *str) const |
|
bool | operator< (const CoreBasicString &str) const |
|
bool | operator< (const char *str) const |
|
|
static CoreString | join (const CoreBasicArray< CoreString > &strings, const CoreString &separator, bool keep_empty=false) |
|
static const CoreString & | get_null_string () |
|
static CoreString | camel_case (const CoreString &name) |
|
static CoreString | before_first (const CoreString &str, char c) |
| Returns the substring which is left to a separator in a string, starting at the begining.
|
|
static CoreString | after_first (const CoreString &str, char c) |
| Returns the substring which is right to a separator in a string, starting at the begining.
|
|
static CoreString | before_last (const CoreString &str, char c) |
| Returns the substring which is left to a separator in a string, starting at the end.
|
|
static CoreString | after_last (const CoreString &str, char c) |
| Returns the substring which is right to a separator in a string, starting at the end.
|
|
static void | alpha_sort (CoreArray< CoreString > &array, bool sensitive_case=true) |
| Sorts a CoreString array in increasing order.
|
|
static void | alpha_sort (CoreVector< CoreString > &vector, bool sensitive_case=true) |
| Sorts a CoreString vector in increasing order.
|
|
static void | alpha_sort (CoreArray< CoreString * > &array, bool sensitive_case=true) |
|
static void | alpha_sort (CoreVector< CoreString * > &vector, bool sensitive_case=true) |
|
static int | compare (const CoreString &str1, const CoreString &str2) |
|
Full-feature null-terminated string class.