mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
COMMON: changed code page constant name from ascii to utf8
This commit is contained in:
parent
c255de107d
commit
47130eceb3
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user