Permalink
Browse files

COMMON: changed code page constant name from ascii to utf8

  • Loading branch information...
whiterandrek committed Aug 5, 2018
1 parent c255de1 commit 47130eceb3a059f342b54b678ce0839e01474dd2
Showing with 3 additions and 3 deletions.
  1. +1 −1 common/ustr.cpp
  2. +2 −2 common/ustr.h
View
@@ -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
@@ -196,14 +196,14 @@ class U32String {
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

0 comments on commit 47130ec

Please sign in to comment.