C3D Kernel  104598
Classes | Typedefs | Functions
Work with Strings
Templates and Serializations Library
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.
wchar_t * wcsnewdup (const wchar_t *str, size_t minLen=0)
 Duplicate a WCHAR-string.
wchar_t * mbsnewwcs (const char *str)
 Convert CHAR to WCHAR.
char * wcsnewmbs (const wchar_t *str)
 Convert WCHAR-string to CHAR-string.
uint32 * Utf16ToUcs4 (uint16 *source, size_t *calculateCountSymbol=NULL)
 Convert from UTF-16 to UCS-4 string.
uint16 * Ucs4ToUtf16 (uint32 *source, size_t *calculateCountSymbol=NULL)
 Convert from UCS-4 to UTF-16 string.

Function Documentation

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

Duplicate a CHAR-string

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

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

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

wchar_t* mbsnewwcs ( const char *  str) [inline]

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

char* wcsnewmbs ( const wchar_t *  str) [inline]

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

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

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

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

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines