MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / GetCurentCodepage

Function GetCurentCodepage

src/Misc/TextInput.cpp:8–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6wchar_t* IMEBuffer = reinterpret_cast<wchar_t*>(0xB730EC);
7
8UINT GetCurentCodepage()
9{
10 char szLCData[6 + 1];
11 WORD lang = LOWORD(GetKeyboardLayout(NULL));
12 LCID locale = MAKELCID(lang, SORT_DEFAULT);
13 GetLocaleInfoA(locale, LOCALE_IDEFAULTANSICODEPAGE, szLCData, _countof(szLCData));
14
15 return atoi(szLCData);
16}
17
18wchar_t LocalizeCharacter(char character)
19{

Callers 1

LocalizeCharacterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected