19#define __LOC_DEFAULT 0x1
20#define __LOC_PRIMARY 0x2
22#define __LOC_LANGUAGE 0x100
23#define __LOC_EXISTS 0x200
31 {
L"american",
L"ENU" },
32 {
L"american english",
L"ENU" },
33 {
L"american-english",
L"ENU" },
34 {
L"australian",
L"ENA" },
35 {
L"belgian",
L"NLB" },
36 {
L"canadian",
L"ENC" },
39 {
L"chinese",
L"CHS" },
40 {
L"chinese-hongkong",
L"ZHH" },
41 {
L"chinese-simplified",
L"CHS" },
42 {
L"chinese-singapore",
L"ZHI" },
43 {
L"chinese-traditional",
L"CHT" },
44 {
L"dutch-belgian",
L"NLB" },
45 {
L"english-american",
L"ENU" },
46 {
L"english-aus",
L"ENA" },
47 {
L"english-belize",
L"ENL" },
48 {
L"english-can",
L"ENC" },
49 {
L"english-caribbean",
L"ENB" },
50 {
L"english-ire",
L"ENI" },
51 {
L"english-jamaica",
L"ENJ" },
52 {
L"english-nz",
L"ENZ" },
53 {
L"english-south africa",
L"ENS" },
54 {
L"english-trinidad y tobago",
L"ENT" },
55 {
L"english-uk",
L"ENG" },
56 {
L"english-us",
L"ENU" },
57 {
L"english-usa",
L"ENU" },
58 {
L"french-belgian",
L"FRB" },
59 {
L"french-canadian",
L"FRC" },
60 {
L"french-luxembourg",
L"FRL" },
61 {
L"french-swiss",
L"FRS" },
62 {
L"german-austrian",
L"DEA" },
63 {
L"german-lichtenstein",
L"DEC" },
64 {
L"german-luxembourg",
L"DEL" },
65 {
L"german-swiss",
L"DES" },
66 {
L"irish-english",
L"ENI" },
67 {
L"italian-swiss",
L"ITS" },
68 {
L"norwegian",
L"NOR" },
69 {
L"norwegian-bokmal",
L"NOR" },
70 {
L"norwegian-nynorsk",
L"NON" },
71 {
L"portuguese-brazilian",
L"PTB" },
72 {
L"spanish-argentina",
L"ESS" },
73 {
L"spanish-bolivia",
L"ESB" },
74 {
L"spanish-chile",
L"ESL" },
75 {
L"spanish-colombia",
L"ESO" },
76 {
L"spanish-costa rica",
L"ESC" },
77 {
L"spanish-dominican republic",
L"ESD" },
78 {
L"spanish-ecuador",
L"ESF" },
79 {
L"spanish-el salvador",
L"ESE" },
80 {
L"spanish-guatemala",
L"ESG" },
81 {
L"spanish-honduras",
L"ESH" },
82 {
L"spanish-mexican",
L"ESM" },
83 {
L"spanish-modern",
L"ESN" },
84 {
L"spanish-nicaragua",
L"ESI" },
85 {
L"spanish-panama",
L"ESA" },
86 {
L"spanish-paraguay",
L"ESZ" },
87 {
L"spanish-peru",
L"ESR" },
88 {
L"spanish-puerto rico",
L"ESU" },
89 {
L"spanish-uruguay",
L"ESY" },
90 {
L"spanish-venezuela",
L"ESV" },
91 {
L"swedish-finland",
L"SVF" },
102 {
L"america",
L"USA" },
103 {
L"britain",
L"GBR" },
104 {
L"china",
L"CHN" },
105 {
L"czech",
L"CZE" },
106 {
L"england",
L"GBR" },
107 {
L"great britain",
L"GBR" },
108 {
L"holland",
L"NLD" },
109 {
L"hong-kong",
L"HKG" },
110 {
L"new-zealand",
L"NZL" },
112 {
L"pr china",
L"CHN" },
113 {
L"pr-china",
L"CHN" },
114 {
L"puerto-rico",
L"PRI" },
115 {
L"slovak",
L"SVK" },
116 {
L"south africa",
L"ZAF" },
117 {
L"south korea",
L"KOR" },
118 {
L"south-africa",
L"ZAF" },
119 {
L"south-korea",
L"KOR" },
120 {
L"trinidad & tobago",
L"TTO" },
122 {
L"united-kingdom",
L"GBR" },
123 {
L"united-states",
L"USA" },
261 *lpOutCodePage = (
UINT)iCodePage;
323 const wchar_t** ppchName)
330 while (low <= high &&
cmp != 0)
332 i = (low + high) / 2;
336 *ppchName = (*(lpTable +
i)).chAbbrev;
633 wchar_t rgcInfo[120];
704 if (!lpCodePageStr || !*lpCodePageStr ||
wcscmp(lpCodePageStr,
L"ACP") == 0)
709 (
LPWSTR) &iCodePage,
sizeof(iCodePage) /
sizeof(
wchar_t)) == 0)
720 else if (
_wcsicmp(lpCodePageStr,
L"utf8") == 0 ||
726 else if (
wcscmp(lpCodePageStr,
L"OCP") == 0)
731 (
LPWSTR) &iCodePage,
sizeof(iCodePage) /
sizeof(
wchar_t)) == 0)
744 iCodePage = (
int)
_wtol(lpCodePageStr);
768 wchar_t sIso639LangName[9];
773 sIso639LangName,
_countof(sIso639LangName)) == 0)
777 if (
wcsncmp(sIso639LangName, localeName,
_countof(sIso639LangName)) == 0)
840 while ((ch >=
L'A' && ch <=
L'Z') || (ch >=
L'a' && ch <=
L'z'))
__acrt_ptd *__cdecl __acrt_getptd(void)
int WINAPI __acrt_GetLocaleInfoEx(_In_opt_ LPCWSTR locale_name, _In_ LCTYPE lc_type, _Out_writes_opt_(data_count) LPWSTR data, _In_ int data_count)
int WINAPI __acrt_GetUserDefaultLocaleName(_Out_writes_(locale_name_count) LPWSTR locale_name, _In_ int locale_name_count)
BOOL WINAPI __acrt_EnumSystemLocalesEx(_In_ LOCALE_ENUMPROCEX enum_proc, _In_ DWORD flags, _In_ LPARAM param, _In_opt_ LPVOID reserved)
BOOL WINAPI IsValidCodePage(UINT codepage)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
static int GetPrimaryLen(LPCWSTR)
static BOOL TranslateName(const __crt_locale_string_table *, int, const wchar_t **)
static BOOL TestDefaultLanguage(LPCWSTR localeName, BOOL bTestPrimary, __crt_qualified_locale_data *_psetloc_data)
__crt_locale_string_table const __acrt_rg_language[]
static BOOL CALLBACK LangCountryEnumProcEx(_In_z_ LPWSTR, DWORD, LPARAM)
static void GetLocaleNameFromLanguage(__crt_qualified_locale_data *_psetloc_data)
__crt_locale_string_table const __acrt_rg_country[]
static int ProcessCodePage(LPCWSTR lpCodePageStr, __crt_qualified_locale_data *_psetloc_data)
static BOOL TestDefaultCountry(LPCWSTR localeName)
static void GetLocaleNameFromLangCountry(__crt_qualified_locale_data *_psetloc_data)
static BOOL CALLBACK LanguageEnumProcEx(_In_z_ LPWSTR, DWORD, LPARAM)
static void GetLocaleNameFromDefault(__crt_qualified_locale_data *_psetloc_data)
size_t const __acrt_rg_language_count
BOOL __cdecl __acrt_get_qualified_locale(const __crt_locale_strings *, UINT *, __crt_locale_strings *)
size_t const __acrt_rg_country_count
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_ _CRTIMP long __cdecl _wtol(_In_z_ const wchar_t *_Str)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
int CDECL _itow_s(int value, wchar_t *str, size_t size, int radix)
#define wcsncpy_s(d, l, s, n)
#define cmp(status, error)
#define LOCALE_NAME_MAX_LENGTH
#define UNREFERENCED_PARAMETER(P)
static const WCHAR szName[]
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_Check_return_ _CRTIMP int __cdecl wcsncmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
_Check_return_ _CRTIMP int __cdecl _wcsnicmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
__crt_qualified_locale_data _setloc_data
wchar_t szLocaleName[LOCALE_NAME_MAX_LENGTH]
wchar_t szLanguage[MAX_LANG_LEN]
wchar_t szCountry[MAX_CTRY_LEN]
wchar_t szCodePage[MAX_CP_LEN]
wchar_t const * pchCountry
wchar_t const * pchLanguage
wchar_t _cacheLocaleName[LOCALE_NAME_MAX_LENGTH]
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
#define LOCALE_IDEFAULTCODEPAGE
#define LOCALE_SISO639LANGNAME
#define LOCALE_SENGLISHLANGUAGENAME
#define LOCALE_IDEFAULTANSICODEPAGE
#define LOCALE_SUPPLEMENTAL
#define LOCALE_SABBREVLANGNAME
#define LOCALE_SABBREVCTRYNAME
#define LOCALE_SENGLISHCOUNTRYNAME