C3D Toolkit  Kernel - 105435, Vision - 121811.105435
+ Collaboration diagram for Work with Strings:

Classes

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

Typedefs

typedef std::basic_string< TCHAR > c3d::string_t
 Definition of the string used by the C3D kernel.

 

Functions

size_t c3d::size_of (string_t s)
 Memory allocated by string.

 
std::wstring c3d::StdToWString (const std::string &s)
 String transformation from multibyte to wide-char.

 
std::string c3d::WToStdString (const std::wstring &s)
 String transformation from wide-char to multibyte.

 
string_t c3d::ToC3Dstring (const std::string &s)
 String transformation to the C3D form.

 
std::string c3d::ToSTDstring (const string_t &s)
 String transformation to the standard form.

 
string_t c3d::ToC3Dstring (const std::wstring &s)
 String transformation to the C3D form.
 
path_string c3d::WToPathstring (const std::wstring &s)
 String transformation to the standard form.
 
std::wstring c3d::ToWstring (const string_t &s)
 String transformation to the standard form.
 
std::string c3d::PathToSTDstring (const path_string &s)
 String transformation to the standard form.
 
string_t c3d::PathToC3Dstring (const path_string &s)
 String transformation to the standard form.
 
path_string c3d::StdToPathstring (const std::string &s)
 String transformation to the standard form.
 
path_string c3d::C3DToPathstring (const string_t &s)
 String transformation to the standard form.
 
void c3d::ToLower (::std::string &v)
 convert symbols to lower case.
 
void c3d::ToLower (::std::wstring &v)
 convert symbols to lower case.
 
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=NULL)
 Convert from UTF-16 to UCS-4 string. More...
 
uint16 * Ucs4ToUtf16 (uint32 *source, size_t *calculateCountSymbol=NULL)
 Convert from UCS-4 to UTF-16 string. More...
 

Detailed Description

Function Documentation

◆ strnewdup()

char* strnewdup ( const char *  str,
size_t  minLen = 0 
)
inline

Return a CHAR-string.

Duplicate a CHAR-string

Duplicate a CHAR-string, delete by the delete[] operator.

◆ wcsnewdup()

wchar_t* wcsnewdup ( const wchar_t *  str,
size_t  minLen = 0 
)
inline

Duplicate a WCHAR-string.

Duplicate a WCHAR-string, delete by delete[] operator.

◆ mbsnewwcs()

wchar_t* mbsnewwcs ( const char *  str)
inline

Convert CHAR to WCHAR.

Convert CHAR-string to WCHAR-string, delete by the delete[] operator.

◆ wcsnewmbs()

char* wcsnewmbs ( const wchar_t *  str)
inline

Convert WCHAR-string to CHAR-string.

Convert WCHAR-string to CHAR-string, delete by the delete[] operator.

◆ Utf16ToUcs4()

uint32* Utf16ToUcs4 ( uint16 *  source,
size_t *  calculateCountSymbol = NULL 
)
inline

Convert from UTF-16 to UCS-4 string.

Convert from UTF-16 to UCS-4 string, delete with delete[] operator.

◆ Ucs4ToUtf16()

uint16* Ucs4ToUtf16 ( uint32 *  source,
size_t *  calculateCountSymbol = NULL 
)
inline

Convert from UCS-4 to UTF-16 string.

Convert from UCS-4 to UTF-16 string, delete with delete[] operator.