|
wchar_t * | g::str::to_widestr (const char *src, wchar_t *dst=(wchar_t *) alloc_new) |
| converts a byte gstr ( const char* ) to a wide one ( wchar_t* ). More...
|
|
char * | g::str::to_charstr (const wchar_t *src, char *dst=(char *) alloc_new) |
| converts a wide gstr ( const wchar_t* ) to a wide one ( char* ) More...
|
|
template<class T > |
size_t | g::str::get_len (const T *aString) |
| Returns the string length.
|
|
template<class T > |
size_t | g::str::str_copy (T *aDestP, const T *aSrcP, size_t aNumChars=infinite) |
| Copies from aSrc to aDest up to a maximum of aNumChars characters (excluding terminator) More...
|
|
template<class T > |
int | g::str::str_compare (const T *aS1, const T *aS2, bool aIsCaseSens=true, size_t aNumChars=infinite) |
| Compares two strings. More...
|
|
template<class T > |
bool | g::str::str_equal (const T *aS1, const T *aS2, bool aIsCaseSens=true, size_t aNumChars=infinite) |
| Check two strings for equality. More...
|
|
template<class T > |
size_t | g::str::str_search (const T *aS1, const T *aS2, bool aIsCaseSens=true, size_t aNumChars=infinite) |
| Searches aS2 inside aS1. More...
|
|
template<class T > |
size_t | g::str::str_replace (const T *aString, const T *aWhat, const T *aWith, T *aOutputBuffer, size_t aNumChars=infinite) |
| Replace aWhat with aWith inside aInput, the result is stored into aOutputBuffer, whose capacity us aNumChars. More...
|
|
template<class T , class R , size_t S> |
R | g::str::str_replace (const T *aInput, const T *aWhat, const T *aWith) |
| Replace aWhat with aWith inside aInput and returns the result as a class string (a std::string , std::wstring , g::cont::g_str<T>) More...
|
|