COMMON: changed code page constant name from ascii to utf8

This commit is contained in:
Andrei Prykhodko 2018-08-05 22:50:42 +03:00
parent c255de107d
commit 47130eceb3
2 changed files with 3 additions and 3 deletions

View File

@ -430,7 +430,7 @@ static const uint32 g_windows1255ConversionTable[] = {0x20AC, 0x0081, 0x201A, 0x
U32String convertToU32String(const char *str, CodePage page) {
const String string(str);
if (page == kAscii) {
if (page == kUtf8) {
return convertUtf8ToUtf32(string);
}

View File

@ -196,14 +196,14 @@ private:
U32String convertUtf8ToUtf32(const String &str);
enum CodePage {
kAscii,
kUtf8,
kWindows1250,
kWindows1251,
kWindows1252,
kWindows1255
};
U32String convertToU32String(const char *str, CodePage page = kAscii);
U32String convertToU32String(const char *str, CodePage page = kUtf8);
} // End of namespace Common