Lines Matching defs:codePage
51 void MultiByteToUnicodeString2(UString &dest, const AString &src, UINT codePage)
72 unsigned len = MultiByteToWideChar(codePage, 0, s + i,
83 unsigned len = (unsigned)MultiByteToWideChar(codePage, 0, src, (int)src.Len(), NULL, 0);
91 len = (unsigned)MultiByteToWideChar(codePage, 0, src, (int)src.Len(), dest.GetBuf(len), (int)len);
117 static void UnicodeStringToMultiByte2(AString &dest, const UString &src, UINT codePage, char defaultChar, bool &defaultCharWasUsed)
143 bool isUtf = (codePage == CP_UTF8 || codePage == CP_UTF7);
144 unsigned len = WideCharToMultiByte(codePage, 0, s + i, src.Len() - i,
159 if (codePage != CP_UTF7)
187 unsigned len = (unsigned)WideCharToMultiByte(codePage, 0, src, (int)src.Len(), NULL, 0, NULL, NULL);
196 bool isUtf = (codePage == CP_UTF8 || codePage == CP_UTF7);
198 len = (unsigned)WideCharToMultiByte(codePage, 0, src, (int)src.Len(),
262 void MultiByteToUnicodeString2(UString &dest, const AString &src, UINT codePage)
268 if (codePage == CP_UTF8 || g_ForceToUTF8)
393 static void UnicodeStringToMultiByte2(AString &dest, const UString &src2, UINT codePage, char defaultChar, bool &defaultCharWasUsed)
395 // if (codePage == 1234567) // for debug purposes
396 if (codePage == CP_UTF8 || g_ForceToUTF8)
500 UString MultiByteToUnicodeString(const AString &src, UINT codePage)
503 MultiByteToUnicodeString2(dest, src, codePage);
507 UString MultiByteToUnicodeString(const char *src, UINT codePage)
509 return MultiByteToUnicodeString(AString(src), codePage);
513 void UnicodeStringToMultiByte2(AString &dest, const UString &src, UINT codePage)
516 UnicodeStringToMultiByte2(dest, src, codePage, k_DefultChar, defaultCharWasUsed);
519 AString UnicodeStringToMultiByte(const UString &src, UINT codePage, char defaultChar, bool &defaultCharWasUsed)
522 UnicodeStringToMultiByte2(dest, src, codePage, defaultChar, defaultCharWasUsed);
526 AString UnicodeStringToMultiByte(const UString &src, UINT codePage)
530 UnicodeStringToMultiByte2(dest, src, codePage, k_DefultChar, defaultCharWasUsed);