|
Public Member Functions |
| Ztring () |
| Ztring (const tstring &s, size_type pos=0, size_type n=npos) |
| Ztring (const tstring *s, size_type pos=0, size_type n=npos) |
| Ztring (const Char *s) |
| Ztring (const Char *s, size_type n) |
| Ztring (size_type n, const Char s) |
Char & | operator() (size_t Pos) |
| Same as [], but resize the string if Pos doesn't exist yet.
|
Ztring & | From_Unicode (const std::wstring &S) |
| convert an Unicode encoded string into Ztring
|
Ztring & | From_Unicode (const wchar_t *s) |
| convert an Unicode encoded string into Ztring
|
Ztring & | From_Unicode (const wchar_t *s, size_t Length) |
| convert an Unicode encoded string into Ztring
|
Ztring & | From_UTF8 (const std::string &S) |
| convert an UTF-8 encoded string into Ztring
|
Ztring & | From_UTF8 (const char *s) |
| convert an UTF-8 encoded string into Ztring
|
Ztring & | From_UTF8 (const char *s, size_t Length) |
| convert an UTF-8 encoded string into Ztring
|
Ztring & | From_Local (const std::string &S) |
| convert an Local encoded string into Ztring
|
Ztring & | From_Local (const char *s) |
| convert an Local encoded string into Ztring
|
Ztring & | From_Local (const char *s, size_t Length) |
| convert an Local encoded string into Ztring
|
Ztring & | From_Number (const int8s, intu Radix=10) |
Ztring & | From_Number (const int8u, intu Radix=10) |
Ztring & | From_Number (const int16s, intu Radix=10) |
Ztring & | From_Number (const int16u, intu Radix=10) |
Ztring & | From_Number (const int32s, intu Radix=10) |
Ztring & | From_Number (const int32u, intu Radix=10) |
Ztring & | From_Number (const float32, intu AfterComma=3, ztring_t Options=Ztring_Nothing) |
Ztring & | From_Number (const float64, intu AfterComma=3, ztring_t Options=Ztring_Nothing) |
Ztring & | From_Number (const float128, intu AfterComma=3, ztring_t Options=Ztring_Nothing) |
std::wstring | To_Unicode () |
std::string | To_UTF8 () |
| Convert into char* (UTF-8 encoded).
|
std::string | To_Local () |
| Convert into char* (Local encoded).
|
int32s | To_int32s (ztring_t Options=Ztring_Rounded) const |
| Convert into Int (32 bits).
|
int32u | To_int32u (ztring_t Options=Ztring_Rounded) const |
| Convert into unsigned Int (32 bits).
|
float32 | To_float32 (ztring_t Options=Ztring_Nothing) const |
| Convert into float.
|
float64 | To_float64 (ztring_t Options=Ztring_Nothing) const |
float128 | To_float128 (ztring_t Options=Ztring_Nothing) const |
Ztring * | MakeLowerCase () |
| convert into lowercase
|
Ztring * | MakeUpperCase () |
| convert into uppercase
|
Ztring * | TrimLeft (Char ToTrim=_T(' ')) |
| Remove leading whitespaces from a string.
|
Ztring * | TrimRight (Char ToTrim=_T(' ')) |
| Remove trailing whitespaces from a string.
|
Ztring * | Trim (Char ToTrim=_T(' ')) |
| Remove leading and trailing whitespaces from a string.
|
Ztring * | Quote (Char ToTrim=_T('\"')) |
| Quotes a string.
|
Ztring | SubString (const tstring &Begin, const tstring &End, size_type Pos=0, ztring_t Options=Ztring_Nothing) const |
| return a string between two strings - Parameters:
-
Begin | First string |
End | Second string |
Pos | Position to begin to scan string |
Options | Options for searching
Available : Ztring_CaseSensitive |
- Returns:
- The substring
"" if not found
|
size_t | FindAndReplace (const tstring &ToFind, const tstring &ReplaceBy, size_type Pos=0, ztring_t Options=Ztring_Nothing) |
| replace a string by another one - Parameters:
-
ToFind | string to find |
ToReplace | string wich replace the string found |
Pos | Position to begin to scan string |
Options | Options for searching
Available : Ztring_CaseSensitive, Ztring_Recursive |
- Returns:
- The count of replacements
|
size_t | Count (const Ztring &ToCount, ztring_t Options=Ztring_Nothing) const |
| Count the number of occurencies of a string in the string - Parameters:
-
ToCount | string to count |
Options | Options for count
Available : Ztring_CaseSensitive |
- Returns:
- the count.
|
bool | Compare (const Ztring &ToCompare, const Ztring &Comparator, ztring_t Options=Ztring_Nothing) const |
| compare with another string - Parameters:
-
ToCompare | string to compare with |
Options | Options for comaparing
Available : Ztring_CaseSensitive |
- Returns:
- The result of comparasion
|
Static Public Member Functions |
Ztring | ToZtring (const int8s I, intu Radix=10) |
Ztring | ToZtring (const int8u I, intu Radix=10) |
Ztring | ToZtring (const int16s I, intu Radix=10) |
Ztring | ToZtring (const int16u I, intu Radix=10) |
Ztring | ToZtring (const int32s I, intu Radix=10) |
Ztring | ToZtring (const int32u I, intu Radix=10) |
Ztring | ToZtring (const float32 F, intu AfterComma=3) |
Ztring | ToZtring (const float64 F, intu AfterComma=3) |
Ztring | ToZtring (const float128 F, intu AfterComma=3) |