C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
tool_string_util.h File Reference

Utility functions for working with strings. More...

#include <system_types.h>
#include <cstdlib>

Classes

class  strbuf
 A buffer of a CHAR-string. More...
 
class  wcsbuf
 A buffer of a WCHAR-string. More...
 

Macros

#define _tcsnewdup   strnewdup
 Duplicate a TCHAR-string.
 

Functions

char * strnewdup (const char *str, size_t minLen=0)
 Return a CHAR-string. More...
 
wchar_t * wcsnewdup (const wchar_t *str, size_t minLen=0)
 Duplicate a WCHAR-string. More...
 
wchar_t * mbsnewwcs (const char *str)
 Convert CHAR to WCHAR. More...
 
char * wcsnewmbs (const wchar_t *str)
 Convert WCHAR-string to CHAR-string. More...
 
uint32 * Utf16ToUcs4 (uint16 *source, size_t *calculateCountSymbol=nullptr)
 Convert from UTF-16 to UCS-4 string. More...
 
uint16 * Ucs4ToUtf16 (uint32 *source, size_t *calculateCountSymbol=nullptr)
 Convert from UCS-4 to UTF-16 string. More...
 

Detailed Description

Utility functions for working with strings.