4void StrToISO(
const byte *SourceString,
byte *DestString)
9 bool hasAnsiChars, hasUTFChars;
10 byte BytesPerCharacter;
13 if(!SourceString || !DestString)
29 if(!hasAnsiChars && hasUTFChars)
31 Len = strlen(SourceString);
34 UTF32 =
UTF8ToUTF32(SourceString, &BytesPerCharacter);
42 *DestString = UTF32 & 0xff;
46 SourceString += BytesPerCharacter;
48 Len -= BytesPerCharacter;
53 strcpy(DestString, SourceString);
void StrToISO(const byte *SourceString, byte *DestString)
void GetStringEncoding(const char *Text, bool *hasAnsiChars, bool *hasUTFChars)
dword UTF8ToUTF32(const byte *UTF8Character, byte *BytesPerChar)