C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
+ Collaboration diagram for Work with Strings:

Classes

class  IC3DCharEncodingTransformer
 An interface for string encoding. More...
 
class  C3DCharEncodingTransformerLocale
 Transform strings using the set locale. More...
 
class  IC3DCharEncodingTransformerStep
 Transform strings using the STEP wide characters encoding. More...
 
class  IC3DCharEncodingTransformerUTF8
 Transform strings using the utf-8 encoding. More...
 
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

virtual bool IC3DCharEncodingTransformer::C3DToStd (const c3d::string_t &from, std::string &to)=0
 Transform string from wchar_t* to char*.
 
virtual bool IC3DCharEncodingTransformer::StdToC3D (const std::string &from, c3d::string_t &to)=0
 Transform string from char* в wchar_t*.
 
virtual bool C3DCharEncodingTransformerLocale::C3DToStd (const c3d::string_t &from, std::string &to)
 Transform C3D string to the STD one.
 
virtual bool C3DCharEncodingTransformerLocale::StdToC3D (const std::string &from, c3d::string_t &to)
 Transform STD string to the C3D one.
 
virtual bool IC3DCharEncodingTransformerStep::C3DToStd (const c3d::string_t &from, std::string &to)
 Transform C3D string to the STD one.
 
virtual bool IC3DCharEncodingTransformerStep::StdToC3D (const std::string &from, c3d::string_t &to)
 Transform STD string to the C3D one.
 
virtual bool IC3DCharEncodingTransformerUTF8::C3DToStd (const c3d::string_t &from, std::string &to)
 Transform C3D string to the STD one.
 
virtual bool IC3DCharEncodingTransformerUTF8::StdToC3D (const std::string &from, c3d::string_t &to)
 Transform STD string to the C3D one.
 
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=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

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 = nullptr 
)
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 = nullptr 
)
inline

Convert from UCS-4 to UTF-16 string.

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