ZenLib

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions | List of all members
ZenLib::Ztring Class Reference

String manipulation (based on std::(w)string) More...

`#include <Ztring.h>`

Inheritance diagram for ZenLib::Ztring:

## Public Member Functions
| Ztring ()
| Ztring (const tstring &str)
| Ztring (const tstring &str, size_type pos, size_type n=npos)
| Ztring (const Char *s, size_type n)
| Ztring (const Char *s)
| Ztring (size_type n, Char c)
Char & | operator() (size_type Pos)
| Same as [], but resize the string if Pos doesn't exist yet. More...
bool | Assign_FromFile (const Ztring &FileName)
Ztring & | From_Unicode (const std::wstring &S)
| convert an Unicode encoded string into Ztring More...
Ztring & | From_Unicode (const wchar_t S)
| convert an Unicode encoded wchar_t into Ztring More...
Ztring & | From_Unicode (const wchar_t *S)
| convert an Unicode encoded string into Ztring More...
Ztring & | From_Unicode (const wchar_t *S, size_type Start, size_type Length)
| convert an Unicode encoded string into Ztring More...
Ztring & | From_Unicode (const wchar_t *S, size_type Length)
| convert an Unicode encoded string into Ztring More...
Ztring & | From_UTF8 (const std::string &S)
| convert an UTF-8 encoded string into Ztring More...
Ztring & | From_UTF8 (const char *S)
| convert an UTF-8 encoded string into Ztring More...
Ztring & | From_UTF8 (const char *S, size_type Start, size_type Length)
| convert an UTF-8 encoded string into Ztring More...
Ztring & | From_UTF8 (const char *S, size_type Length)
| convert an UTF-8 encoded string into Ztring More...
Ztring & | From_UTF16 (const char *S)
| convert an UTF-16 encoded string into Ztring More...
Ztring & | From_UTF16 (const char *S, size_type Start, size_type Length)
| convert an UTF-16 encoded string into Ztring More...
Ztring & | From_UTF16 (const char *S, size_type Length)
| convert an UTF-16 encoded string into Ztring More...
Ztring & | From_UTF16BE (const char *S)
| convert an UTF-16BE encoded string into Ztring More...
Ztring & | From_UTF16BE (const char *S, size_type Start, size_type Length)
| convert an UTF-16BE encoded string into Ztring More...
Ztring & | From_UTF16BE (const char *S, size_type Length)
| convert an UTF-16BE encoded string into Ztring More...
Ztring & | From_UTF16LE (const char *S)
| convert an UTF-16LE encoded string into Ztring More...
Ztring & | From_UTF16LE (const char *S, size_type Start, size_type Length)
| convert an UTF-16LE encoded string into Ztring More...
Ztring & | From_UTF16LE (const char *S, size_type Length)
| convert an UTF-16LE encoded string into Ztring More...
Ztring & | From_Local (const std::string &S)
| convert an Locael encoded string into Ztring More...
Ztring & | From_Local (const char *S)
| convert an Local encoded string into Ztring More...
Ztring & | From_Local (const char *S, size_type Start, size_type Length)
| convert an Local encoded string into Ztring More...
Ztring & | From_Local (const char *S, size_type Length)
| convert an Local encoded string into Ztring More...
Ztring & | From_ISO_8859_1 (const char *S)
| convert an ISO-8859-1 encoded string into Ztring More...
Ztring & | From_ISO_8859_1 (const char *S, size_type Start, size_type Length)
| convert an ISO-8859-1 encoded string into Ztring More...
Ztring & | From_ISO_8859_1 (const char *S, size_type Length)
| convert an ISO-8859-1 encoded string into Ztring More...
Ztring & | From_ISO_8859_2 (const char *S)
| convert an ISO-8859-2 encoded string into Ztring More...
Ztring & | From_ISO_8859_2 (const char *S, size_type Start, size_type Length)
| convert an ISO-8859-1 encoded string into Ztring More...
Ztring & | From_ISO_8859_2 (const char *S, size_type Length)
| convert an ISO-8859-1 encoded string into Ztring More...
Ztring & | From_GUID (const int128u S)
| convert an 16 byte GUID into Ztring More...
Ztring & | From_UUID (const int128u S)
| convert an 16 byte UUID into Ztring More...
Ztring & | From_CC4 (const char *S)
| convert an 4 Character Code into Ztring More...
Ztring & | From_CC4 (const int8u *S)
| convert an 4 Character Code into Ztring More...
Ztring & | From_CC4 (const int32u S)
| convert an 4 Character Code into Ztring More...
Ztring & | From_CC3 (const char *S)
| convert an 2 Character Code into Ztring More...
Ztring & | From_CC3 (const int8u *S)
| convert an 4 Character Code into Ztring More...
Ztring & | From_CC3 (const int32u S)
| convert an 4 Character Code into Ztring More...
Ztring & | From_CC2 (const char *S)
| convert an 2 Character Code into Ztring More...
Ztring & | From_CC2 (const int8u *S)
| convert an 2 Character Code into Ztring More...
Ztring & | From_CC2 (const int16u S)
| convert an 2 Character Code into Ztring More...
Ztring & | From_CC1 (const char *S)
| convert an 1 Character Code into Ztring More...
Ztring & | From_CC1 (const int8u *S)
| convert an 1 Character Code into Ztring More...
Ztring & | From_CC1 (const int8u S)
| convert an 1 Character Code into Ztring More...
Ztring & | From_Number (const int8s, int8u Radix=10)
| convert number into Ztring More...
Ztring & | From_Number (const int8u, int8u Radix=10)
| convert number into Ztring More...
Ztring & | From_Number (const int16s, int8u Radix=10)
| convert number into Ztring More...
Ztring & | From_Number (const int16u, int8u Radix=10)
| convert number into Ztring More...
Ztring & | From_Number (const int32s, int8u Radix=10)
| convert number into Ztring More...
Ztring & | From_Number (const int32u, int8u Radix=10)
| convert number into Ztring More...
Ztring & | From_Number (const int64s, int8u Radix=10)
| convert number into Ztring More...
Ztring & | From_Number (const int64u, int8u Radix=10)
| convert number into Ztring More...
Ztring & | From_Number (const int128u, int8u Radix=10)
| convert number into Ztring More...
Ztring & | From_Number (const float32, int8u AfterComma=3, ztring_t Options=Ztring_Nothing)
| convert number into Ztring More...
Ztring & | From_Number (const float64, int8u AfterComma=3, ztring_t Options=Ztring_Nothing)
| convert number into Ztring More...
Ztring & | From_Number (const float80, int8u AfterComma=3, ztring_t Options=Ztring_Nothing)
| convert number into Ztring More...
Ztring & | From_BCD (const int8u)
| convert number (BCD coded) into Ztring More...
Ztring & | Duration_From_Milliseconds (const int64s Milliseconds)
| convert count of milliseconds into a readable and sortable string More...
Ztring & | Duration_From_Milliseconds (const int64u Milliseconds)
Ztring & | Date_From_Milliseconds_1601 (const int64u Milliseconds)
| convert count of seconds since 1601 into a readable and sortable string More...
Ztring & | Date_From_Seconds_1601 (const int64u Seconds)
| convert count of seconds since 1601 into a readable and sortable string More...
Ztring & | Date_From_Seconds_1900 (const int32u Seconds)
| convert count of seconds since 1900 into a readable and sortable string More...
Ztring & | Date_From_Seconds_1900 (const int64s Seconds)
| convert count of seconds since 1900 into a readable and sortable string More...
Ztring & | Date_From_Seconds_1904 (const int32u Seconds)
| convert count of seconds since 1904 into a readable and sortable string More...
Ztring & | Date_From_Seconds_1904 (const int64u Seconds)
| convert count of seconds since 1904 into a readable and sortable string More...
Ztring & | Date_From_Seconds_1904 (const int64s Seconds)
| convert count of seconds since 1904 into a readable and sortable string More...
Ztring & | Date_From_Seconds_1970 (const int32u Seconds)
| convert count of seconds since 1970 into a readable and sortable string More...
Ztring & | Date_From_Seconds_1970 (const int32s Seconds)
| convert count of seconds since 1970 into a readable and sortable string More...
Ztring & | Date_From_Seconds_1970 (const int64s Seconds)
| convert count of seconds since 1970 into a readable and sortable string More...
Ztring & | Date_From_Seconds_1970_Local (const int32u Seconds)
| convert count of seconds since 1970 into a readable and sortable string (in local time) More...
Ztring & | Date_From_String (const char *Date, size_type Value_Size=Error)
| convert a free formated string into a readable and sortable string More...
Ztring & | Date_From_Numbers (const int8u Year, const int8u Month, const int8u Day, const int8u Hour, const int8u Minute, const int8u Second)
| convert numbers into a readable and sortable string More...
std::wstring | To_Unicode () const
| Convert into Unicode chars. More...
std::string | To_UTF8 () const
| Convert into char* (UTF-8 encoded) More...
std::string | To_Local () const
| Convert into char* (Local encoded) More...
int128u | To_UUID () const
| Convert into 16 byte UUID number. More...
int32u | To_CC4 () const
| Convert into a 4 Character Code. More...
int8s | To_int8s (int8u Radix=10, ztring_t Options=Ztring_Rounded) const
| Convert into Int (8 bits) More...
int8u | To_int8u (int8u Radix=10, ztring_t Options=Ztring_Rounded) const
| Convert into unsigned Int (8 bits) More...
int16s | To_int16s (int8u Radix=10, ztring_t Options=Ztring_Rounded) const
| Convert into Int (16 bits) More...
int16u | To_int16u (int8u Radix=10, ztring_t Options=Ztring_Rounded) const
| Convert into unsigned Int (16 bits) More...
int32s | To_int32s (int8u Radix=10, ztring_t Options=Ztring_Rounded) const
| Convert into Int (32 bits) More...
int32u | To_int32u (int8u Radix=10, ztring_t Options=Ztring_Rounded) const
| Convert into unsigned Int (32 bits) More...
int64s | To_int64s (int8u Radix=10, ztring_t Options=Ztring_Rounded) const
| Convert into Int (64 bits) More...
int64u | To_int64u (int8u Radix=10, ztring_t Options=Ztring_Rounded) const
| Convert into unsigned Int (64 bits) More...
int128u | To_int128u (int8u Radix=10, ztring_t Options=Ztring_Rounded) const
| Convert into unsigned Int (64 bits) More...
float32 | To_float32 (ztring_t Options=Ztring_Nothing) const
| Convert into float. More...
float64 | To_float64 (ztring_t Options=Ztring_Nothing) const
float80 | To_float80 (ztring_t Options=Ztring_Nothing) const
bool | IsNumber () const
| test if it is a number More...
Ztring & | MakeLowerCase ()
| convert into lowercase More...
Ztring & | MakeUpperCase ()
| convert into uppercase More...
Ztring & | TrimLeft (Char ToTrim=__T(' '))
| Remove leading whitespaces from a string. More...
Ztring & | TrimRight (Char ToTrim=__T(' '))
| Remove trailing whitespaces from a string. More...
Ztring & | Trim (Char ToTrim=__T(' '))
| Remove leading and trailing whitespaces from a string. More...
Ztring & | Quote (Char ToTrim=__T('\"'))
| Quotes a string. More...
Ztring | SubString (const tstring &Begin, const tstring &End, size_type Pos=0, ztring_t Options=Ztring_Nothing) const
| return a string between two strings More...
size_type | FindAndReplace (const tstring &ToFind, const tstring &ReplaceBy, size_type Pos=0, ztring_t Options=Ztring_Nothing)
| replace a string by another one More...
size_type | Count (const Ztring &ToCount, ztring_t Options=Ztring_Nothing) const
| Count the number of occurencies of a string in the string. More...
bool | Compare (const Ztring &ToCompare, const Ztring &Comparator=__T("=="), ztring_t Options=Ztring_Nothing) const
| compare with another string More...

## Static Public Member Functions
static Ztring | ToZtring_From_Local (const std::string &S)
static Ztring | ToZtring_From_Local (const char *S)
static Ztring | ToZtring_From_Local (const char *S, size_type Start, size_type Length)
static Ztring | ToZtring_From_Local (const char *S, size_type Length)
static Ztring | ToZtring_From_CC4 (const char *S)
static Ztring | ToZtring_From_CC4 (const int8u *S)
static Ztring | ToZtring_From_CC4 (const int32u S)
static Ztring | ToZtring_From_CC3 (const char *S)
static Ztring | ToZtring_From_CC3 (const int8u *S)
static Ztring | ToZtring_From_CC3 (const int32u S)
static Ztring | ToZtring_From_CC2 (const char *S)
static Ztring | ToZtring_From_CC2 (const int8u *S)
static Ztring | ToZtring_From_CC2 (const int16u S)
static Ztring | ToZtring_From_CC1 (const char *S)
static Ztring | ToZtring_From_CC1 (const int8u *S)
static Ztring | ToZtring_From_CC1 (const int8u S)
static Ztring | ToZtring (const int8s I, int8u Radix=10)
static Ztring | ToZtring (const int8u I, int8u Radix=10)
static Ztring | ToZtring (const int16s I, int8u Radix=10)
static Ztring | ToZtring (const int16u I, int8u Radix=10)
static Ztring | ToZtring (const int32s I, int8u Radix=10)
static Ztring | ToZtring (const int32u I, int8u Radix=10)
static Ztring | ToZtring (const int64s I, int8u Radix=10)
static Ztring | ToZtring (const int64u I, int8u Radix=10)
static Ztring | ToZtring (const int128u I, int8u Radix=10)
static Ztring | ToZtring (const float32 F, int8u AfterComma=3)
static Ztring | ToZtring (const float64 F, int8u AfterComma=3)
static Ztring | ToZtring (const float80 F, int8u AfterComma=3)

## Detailed Description

String manipulation (based on std::(w)string)

## Constructor & Destructor Documentation

ZenLib::Ztring::Ztring | ( |  | ) |
| inline

Referenced by ToZtring(), ToZtring_From_CC1(), ToZtring_From_CC2(), ToZtring_From_CC3(), ToZtring_From_CC4(), and ToZtring_From_Local().

ZenLib::Ztring::Ztring | ( | const tstring & | str | ) |
| inline

ZenLib::Ztring::Ztring | ( | const tstring & | str,
|  | size_type | pos,
|  | size_type | n = `npos`
| ) |  |
| inline

ZenLib::Ztring::Ztring | ( | const Char * | s,
|  | size_type | n
| ) |  |
| inline

ZenLib::Ztring::Ztring | ( | const Char * | s | ) |
| inline

ZenLib::Ztring::Ztring | ( | size_type | n,
|  | Char | c
| ) |  |
| inline

## Member Function Documentation

bool ZenLib::Ztring::Assign_FromFile | ( | const Ztring & | FileName | ) |

bool ZenLib::Ztring::Compare | ( | const Ztring & | ToCompare,
|  | const Ztring & | Comparator = `__T("==")`,
|  | 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

size_type ZenLib::Ztring::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

Ztring& ZenLib::Ztring::Date_From_Milliseconds_1601 | ( | const int64u | Milliseconds | ) |

convert count of seconds since 1601 into a readable and sortable string

Ztring& ZenLib::Ztring::Date_From_Numbers | ( | const int8u | Year,
|  | const int8u | Month,
|  | const int8u | Day,
|  | const int8u | Hour,
|  | const int8u | Minute,
|  | const int8u | Second
| ) |  |

convert numbers into a readable and sortable string

Ztring& ZenLib::Ztring::Date_From_Seconds_1601 | ( | const int64u | Seconds | ) |

convert count of seconds since 1601 into a readable and sortable string

Ztring& ZenLib::Ztring::Date_From_Seconds_1900 | ( | const int32u | Seconds | ) |

convert count of seconds since 1900 into a readable and sortable string

Ztring& ZenLib::Ztring::Date_From_Seconds_1900 | ( | const int64s | Seconds | ) |

convert count of seconds since 1900 into a readable and sortable string

Ztring& ZenLib::Ztring::Date_From_Seconds_1904 | ( | const int32u | Seconds | ) |

convert count of seconds since 1904 into a readable and sortable string

Ztring& ZenLib::Ztring::Date_From_Seconds_1904 | ( | const int64u | Seconds | ) |

convert count of seconds since 1904 into a readable and sortable string

Ztring& ZenLib::Ztring::Date_From_Seconds_1904 | ( | const int64s | Seconds | ) |

convert count of seconds since 1904 into a readable and sortable string

Ztring& ZenLib::Ztring::Date_From_Seconds_1970 | ( | const int32u | Seconds | ) |

convert count of seconds since 1970 into a readable and sortable string

Ztring& ZenLib::Ztring::Date_From_Seconds_1970 | ( | const int32s | Seconds | ) |

convert count of seconds since 1970 into a readable and sortable string

Ztring& ZenLib::Ztring::Date_From_Seconds_1970 | ( | const int64s | Seconds | ) |

convert count of seconds since 1970 into a readable and sortable string

Ztring& ZenLib::Ztring::Date_From_Seconds_1970_Local | ( | const int32u | Seconds | ) |

convert count of seconds since 1970 into a readable and sortable string (in local time)

Ztring& ZenLib::Ztring::Date_From_String | ( | const char * | Date,
|  | size_type | Value_Size = `Error`
| ) |  |

convert a free formated string into a readable and sortable string

Ztring& ZenLib::Ztring::Duration_From_Milliseconds | ( | const int64s | Milliseconds | ) |

convert count of milliseconds into a readable and sortable string

Ztring& ZenLib::Ztring::Duration_From_Milliseconds | ( | const int64u | Milliseconds | ) |

Deprecated:
  replaced by the int64s version

size_type ZenLib::Ztring::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

Ztring& ZenLib::Ztring::From_BCD | ( | const int8u |  | ) |

convert number (BCD coded) into Ztring

Ztring& ZenLib::Ztring::From_CC1 | ( | const char * | S | ) |
| inline

convert an 1 Character Code into Ztring

References ZenLib::CC1(), and From_CC1().

Referenced by From_CC1().

Ztring& ZenLib::Ztring::From_CC1 | ( | const int8u * | S | ) |
| inline

convert an 1 Character Code into Ztring

References ZenLib::CC1(), and From_CC1().

Referenced by From_CC1().

Ztring& ZenLib::Ztring::From_CC1 | ( | const int8u | S | ) |

convert an 1 Character Code into Ztring

Ztring& ZenLib::Ztring::From_CC2 | ( | const char * | S | ) |
| inline

convert an 2 Character Code into Ztring

References ZenLib::CC2(), and From_CC2().

Referenced by From_CC2().

Ztring& ZenLib::Ztring::From_CC2 | ( | const int8u * | S | ) |
| inline

convert an 2 Character Code into Ztring

References ZenLib::CC2(), and From_CC2().

Referenced by From_CC2().

Ztring& ZenLib::Ztring::From_CC2 | ( | const int16u | S | ) |

convert an 2 Character Code into Ztring

Ztring& ZenLib::Ztring::From_CC3 | ( | const char * | S | ) |
| inline

convert an 2 Character Code into Ztring

References From_Local().

Ztring& ZenLib::Ztring::From_CC3 | ( | const int8u * | S | ) |
| inline

convert an 4 Character Code into Ztring

References From_Local().

Ztring& ZenLib::Ztring::From_CC3 | ( | const int32u | S | ) |

convert an 4 Character Code into Ztring

Ztring& ZenLib::Ztring::From_CC4 | ( | const char * | S | ) |
| inline

convert an 4 Character Code into Ztring

References From_Local().

Ztring& ZenLib::Ztring::From_CC4 | ( | const int8u * | S | ) |
| inline

convert an 4 Character Code into Ztring

References From_Local().

Ztring& ZenLib::Ztring::From_CC4 | ( | const int32u | S | ) |

convert an 4 Character Code into Ztring

Ztring& ZenLib::Ztring::From_GUID | ( | const int128u | S | ) |

convert an 16 byte GUID into Ztring

Ztring& ZenLib::Ztring::From_ISO_8859_1 | ( | const char * | S | ) |

convert an ISO-8859-1 encoded string into Ztring

Ztring& ZenLib::Ztring::From_ISO_8859_1 | ( | const char * | S,
|  | size_type | Start,
|  | size_type | Length
| ) |  |

convert an ISO-8859-1 encoded string into Ztring

Ztring& ZenLib::Ztring::From_ISO_8859_1 | ( | const char * | S,
|  | size_type | Length
| ) |  |
| inline

convert an ISO-8859-1 encoded string into Ztring

References From_ISO_8859_1().

Referenced by From_ISO_8859_1().

Ztring& ZenLib::Ztring::From_ISO_8859_2 | ( | const char * | S | ) |

convert an ISO-8859-2 encoded string into Ztring

Ztring& ZenLib::Ztring::From_ISO_8859_2 | ( | const char * | S,
|  | size_type | Start,
|  | size_type | Length
| ) |  |

convert an ISO-8859-1 encoded string into Ztring

Ztring& ZenLib::Ztring::From_ISO_8859_2 | ( | const char * | S,
|  | size_type | Length
| ) |  |
| inline

convert an ISO-8859-1 encoded string into Ztring

References From_ISO_8859_2().

Referenced by From_ISO_8859_2().

Ztring& ZenLib::Ztring::From_Local | ( | const std::string & | S | ) |
| inline

convert an Locael encoded string into Ztring

References From_Local().

Referenced by From_CC3(), From_CC4(), and From_Local().

Ztring& ZenLib::Ztring::From_Local | ( | const char * | S | ) |

convert an Local encoded string into Ztring

Ztring& ZenLib::Ztring::From_Local | ( | const char * | S,
|  | size_type | Start,
|  | size_type | Length
| ) |  |

convert an Local encoded string into Ztring

Ztring& ZenLib::Ztring::From_Local | ( | const char * | S,
|  | size_type | Length
| ) |  |
| inline

convert an Local encoded string into Ztring

References From_Local().

Referenced by From_Local().

Ztring& ZenLib::Ztring::From_Number | ( | const int8s | ,
|  | int8u | Radix = `10`
| ) |  |

convert number into Ztring

Ztring& ZenLib::Ztring::From_Number | ( | const int8u | ,
|  | int8u | Radix = `10`
| ) |  |

convert number into Ztring

Ztring& ZenLib::Ztring::From_Number | ( | const int16s | ,
|  | int8u | Radix = `10`
| ) |  |

convert number into Ztring

Ztring& ZenLib::Ztring::From_Number | ( | const int16u | ,
|  | int8u | Radix = `10`
| ) |  |

convert number into Ztring

Ztring& ZenLib::Ztring::From_Number | ( | const int32s | ,
|  | int8u | Radix = `10`
| ) |  |

convert number into Ztring

Ztring& ZenLib::Ztring::From_Number | ( | const int32u | ,
|  | int8u | Radix = `10`
| ) |  |

convert number into Ztring

Ztring& ZenLib::Ztring::From_Number | ( | const int64s | ,
|  | int8u | Radix = `10`
| ) |  |

convert number into Ztring

Ztring& ZenLib::Ztring::From_Number | ( | const int64u | ,
|  | int8u | Radix = `10`
| ) |  |

convert number into Ztring

Ztring& ZenLib::Ztring::From_Number | ( | const int128u | ,
|  | int8u | Radix = `10`
| ) |  |

convert number into Ztring

Ztring& ZenLib::Ztring::From_Number | ( | const float32 | ,
|  | int8u | AfterComma = `3`,
|  | ztring_t | Options = `Ztring_Nothing`
| ) |  |

convert number into Ztring

Ztring& ZenLib::Ztring::From_Number | ( | const float64 | ,
|  | int8u | AfterComma = `3`,
|  | ztring_t | Options = `Ztring_Nothing`
| ) |  |

convert number into Ztring

Ztring& ZenLib::Ztring::From_Number | ( | const float80 | ,
|  | int8u | AfterComma = `3`,
|  | ztring_t | Options = `Ztring_Nothing`
| ) |  |

convert number into Ztring

Ztring& ZenLib::Ztring::From_Unicode | ( | const std::wstring & | S | ) |
| inline

convert an Unicode encoded string into Ztring

References From_Unicode().

Referenced by From_Unicode().

Ztring& ZenLib::Ztring::From_Unicode | ( | const wchar_t | S | ) |

convert an Unicode encoded wchar_t into Ztring

Ztring& ZenLib::Ztring::From_Unicode | ( | const wchar_t * | S | ) |

convert an Unicode encoded string into Ztring

Ztring& ZenLib::Ztring::From_Unicode | ( | const wchar_t * | S,
|  | size_type | Start,
|  | size_type | Length
| ) |  |

convert an Unicode encoded string into Ztring

Ztring& ZenLib::Ztring::From_Unicode | ( | const wchar_t * | S,
|  | size_type | Length
| ) |  |
| inline

convert an Unicode encoded string into Ztring

References From_Unicode().

Referenced by From_Unicode().

Ztring& ZenLib::Ztring::From_UTF16 | ( | const char * | S | ) |

convert an UTF-16 encoded string into Ztring

Ztring& ZenLib::Ztring::From_UTF16 | ( | const char * | S,
|  | size_type | Start,
|  | size_type | Length
| ) |  |

convert an UTF-16 encoded string into Ztring

Ztring& ZenLib::Ztring::From_UTF16 | ( | const char * | S,
|  | size_type | Length
| ) |  |
| inline

convert an UTF-16 encoded string into Ztring

References From_UTF16().

Referenced by From_UTF16().

Ztring& ZenLib::Ztring::From_UTF16BE | ( | const char * | S | ) |

convert an UTF-16BE encoded string into Ztring

Ztring& ZenLib::Ztring::From_UTF16BE | ( | const char * | S,
|  | size_type | Start,
|  | size_type | Length
| ) |  |

convert an UTF-16BE encoded string into Ztring

Ztring& ZenLib::Ztring::From_UTF16BE | ( | const char * | S,
|  | size_type | Length
| ) |  |
| inline

convert an UTF-16BE encoded string into Ztring

References From_UTF16BE().

Referenced by From_UTF16BE().

Ztring& ZenLib::Ztring::From_UTF16LE | ( | const char * | S | ) |

convert an UTF-16LE encoded string into Ztring

Ztring& ZenLib::Ztring::From_UTF16LE | ( | const char * | S,
|  | size_type | Start,
|  | size_type | Length
| ) |  |

convert an UTF-16LE encoded string into Ztring

Ztring& ZenLib::Ztring::From_UTF16LE | ( | const char * | S,
|  | size_type | Length
| ) |  |
| inline

convert an UTF-16LE encoded string into Ztring

References From_UTF16LE().

Referenced by From_UTF16LE().

Ztring& ZenLib::Ztring::From_UTF8 | ( | const std::string & | S | ) |
| inline

convert an UTF-8 encoded string into Ztring

References From_UTF8().

Referenced by From_UTF8().

Ztring& ZenLib::Ztring::From_UTF8 | ( | const char * | S | ) |

convert an UTF-8 encoded string into Ztring

Ztring& ZenLib::Ztring::From_UTF8 | ( | const char * | S,
|  | size_type | Start,
|  | size_type | Length
| ) |  |

convert an UTF-8 encoded string into Ztring

Ztring& ZenLib::Ztring::From_UTF8 | ( | const char * | S,
|  | size_type | Length
| ) |  |
| inline

convert an UTF-8 encoded string into Ztring

References From_UTF8().

Referenced by From_UTF8().

Ztring& ZenLib::Ztring::From_UUID | ( | const int128u | S | ) |

convert an 16 byte UUID into Ztring

bool ZenLib::Ztring::IsNumber | ( |  | ) | const

test if it is a number

Ztring& ZenLib::Ztring::MakeLowerCase | ( |  | ) |

convert into lowercase

Ztring& ZenLib::Ztring::MakeUpperCase | ( |  | ) |

convert into uppercase

Char& ZenLib::Ztring::operator() | ( | size_type | Pos | ) |

Same as [], but resize the string if Pos doesn't exist yet.

Ztring& ZenLib::Ztring::Quote | ( | Char | ToTrim = `__T('\"')` | ) |

Quotes a string.

Ztring ZenLib::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

int32u ZenLib::Ztring::To_CC4 | ( |  | ) | const

Convert into a 4 Character Code.

Returns
  the value corresponding
  0 if there is a problem

float32 ZenLib::Ztring::To_float32 | ( | ztring_t | Options = `Ztring_Nothing` | ) | const

Convert into float.

Returns
  the value corresponding
  0 if there is a problem

float64 ZenLib::Ztring::To_float64 | ( | ztring_t | Options = `Ztring_Nothing` | ) | const

float80 ZenLib::Ztring::To_float80 | ( | ztring_t | Options = `Ztring_Nothing` | ) | const

int128u ZenLib::Ztring::To_int128u | ( | int8u | Radix = `10`,
|  | ztring_t | Options = `Ztring_Rounded`
| ) |  | const

Convert into unsigned Int (64 bits)

Warning
  only hexadecimal and no rounding are currenlty supported

Returns
  the value corresponding
  0 if there is a problem

int16s ZenLib::Ztring::To_int16s | ( | int8u | Radix = `10`,
|  | ztring_t | Options = `Ztring_Rounded`
| ) |  | const

Convert into Int (16 bits)

Returns
  the value corresponding
  0 if there is a problem

int16u ZenLib::Ztring::To_int16u | ( | int8u | Radix = `10`,
|  | ztring_t | Options = `Ztring_Rounded`
| ) |  | const

Convert into unsigned Int (16 bits)

Returns
  the value corresponding 0 if there is a problem

int32s ZenLib::Ztring::To_int32s | ( | int8u | Radix = `10`,
|  | ztring_t | Options = `Ztring_Rounded`
| ) |  | const

Convert into Int (32 bits)

Returns
  the value corresponding
  0 if there is a problem

int32u ZenLib::Ztring::To_int32u | ( | int8u | Radix = `10`,
|  | ztring_t | Options = `Ztring_Rounded`
| ) |  | const

Convert into unsigned Int (32 bits)

Returns
  the value corresponding 0 if there is a problem

int64s ZenLib::Ztring::To_int64s | ( | int8u | Radix = `10`,
|  | ztring_t | Options = `Ztring_Rounded`
| ) |  | const

Convert into Int (64 bits)

Returns
  the value corresponding
  0 if there is a problem

int64u ZenLib::Ztring::To_int64u | ( | int8u | Radix = `10`,
|  | ztring_t | Options = `Ztring_Rounded`
| ) |  | const

Convert into unsigned Int (64 bits)

Returns
  the value corresponding
  0 if there is a problem

int8s ZenLib::Ztring::To_int8s | ( | int8u | Radix = `10`,
|  | ztring_t | Options = `Ztring_Rounded`
| ) |  | const

Convert into Int (8 bits)

Returns
  the value corresponding
  0 if there is a problem

int8u ZenLib::Ztring::To_int8u | ( | int8u | Radix = `10`,
|  | ztring_t | Options = `Ztring_Rounded`
| ) |  | const

Convert into unsigned Int (8 bits)

Returns
  the value corresponding 0 if there is a problem

std::string ZenLib::Ztring::To_Local | ( |  | ) | const

Convert into char* (Local encoded)

Returns
  the string corresponding

std::wstring ZenLib::Ztring::To_Unicode | ( |  | ) | const

Convert into Unicode chars.

Returns
  the string corresponding

std::string ZenLib::Ztring::To_UTF8 | ( |  | ) | const

Convert into char* (UTF-8 encoded)

Returns
  the string corresponding

int128u ZenLib::Ztring::To_UUID | ( |  | ) | const

Convert into 16 byte UUID number.

Returns
  the value corresponding
  0 if there is a problem

static Ztring ZenLib::Ztring::ToZtring | ( | const int8s | I,
|  | int8u | Radix = `10`
| ) |  |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring | ( | const int8u | I,
|  | int8u | Radix = `10`
| ) |  |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring | ( | const int16s | I,
|  | int8u | Radix = `10`
| ) |  |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring | ( | const int16u | I,
|  | int8u | Radix = `10`
| ) |  |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring | ( | const int32s | I,
|  | int8u | Radix = `10`
| ) |  |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring | ( | const int32u | I,
|  | int8u | Radix = `10`
| ) |  |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring | ( | const int64s | I,
|  | int8u | Radix = `10`
| ) |  |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring | ( | const int64u | I,
|  | int8u | Radix = `10`
| ) |  |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring | ( | const int128u | I,
|  | int8u | Radix = `10`
| ) |  |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring | ( | const float32 | F,
|  | int8u | AfterComma = `3`
| ) |  |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring | ( | const float64 | F,
|  | int8u | AfterComma = `3`
| ) |  |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring | ( | const float80 | F,
|  | int8u | AfterComma = `3`
| ) |  |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_CC1 | ( | const char * | S | ) |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_CC1 | ( | const int8u * | S | ) |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_CC1 | ( | const int8u | S | ) |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_CC2 | ( | const char * | S | ) |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_CC2 | ( | const int8u * | S | ) |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_CC2 | ( | const int16u | S | ) |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_CC3 | ( | const char * | S | ) |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_CC3 | ( | const int8u * | S | ) |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_CC3 | ( | const int32u | S | ) |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_CC4 | ( | const char * | S | ) |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_CC4 | ( | const int8u * | S | ) |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_CC4 | ( | const int32u | S | ) |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_Local | ( | const std::string & | S | ) |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_Local | ( | const char * | S | ) |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_Local | ( | const char * | S,
|  | size_type | Start,
|  | size_type | Length
| ) |  |
| inline static

References Ztring().

static Ztring ZenLib::Ztring::ToZtring_From_Local | ( | const char * | S,
|  | size_type | Length
| ) |  |
| inline static

References Ztring().

Ztring& ZenLib::Ztring::Trim | ( | Char | ToTrim = `__T(' ')` | ) |

Remove leading and trailing whitespaces from a string.

Ztring& ZenLib::Ztring::TrimLeft | ( | Char | ToTrim = `__T(' ')` | ) |

Remove leading whitespaces from a string.

Ztring& ZenLib::Ztring::TrimRight | ( | Char | ToTrim = `__T(' ')` | ) |

Remove trailing whitespaces from a string.

The documentation for this class was generated from the following file:

- Ztring.h