8#ifndef xstring_operation_h
9#define xstring_operation_h
11BEGIN_MOOTOOLS_NAMESPACE
16 xStringDefaultEncoding = (
unsigned int)-1,
23#define IsStringEncodingUnicode(encodingValue) ((bool)((encodingValue == xStringUtf16) || (encodingValue == xStringUtf32)))
26DLL_TOOLSFUNCTION SIZET xUTF8ToUTF16(
const unsigned char *
utf8,
unsigned short *
utf16);
27DLL_TOOLSFUNCTION SIZET xUTF16ToUTF32(
const unsigned short *
utf16, SIZET
charcount,
unsigned int *
utf32);
79 operator LPCWSTR() {
return isValid ? buffer.data() :
NULL; }
105 operator LPCSTR() {
return isValid ? buffer.data() :
NULL; }
113class DLL_TOOLSFUNCTION XCW2W
124class DLL_TOOLSFUNCTION XCA2A
134END_MOOTOOLS_NAMESPACE
The class defines an x, y, z 3D point which can use int, float or double.
Definition 3DPoint.h:27
Conversion from ansi / utf8 (char) to unicode (wchar_t)
Definition xstringoperation.h:66
Conversion from unicode (wchar_t) to ansi / utf8 (char)
Definition xstringoperation.h:92