8bd6e8f198
No public headers are using it anymore, so move it from include/private into src/core where SkTSearch.cpp resides. Change-Id: I4499c629487ff1b8c391b44708616d67567a3e9b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/213674 Commit-Queue: Ben Wagner <bungeman@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
38 lines
966 B
C++
38 lines
966 B
C++
/*
|
|
* Copyright 2013 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
#include <windows.h>
|
|
#include <stdio.h>
|
|
|
|
#define BUFFER_SIZE 512
|
|
BOOL CALLBACK MyFuncLocaleEx(LPWSTR pStr, DWORD dwFlags, LPARAM lparam) {
|
|
WCHAR wcBuffer[BUFFER_SIZE];
|
|
int bufferSize;
|
|
|
|
bufferSize = GetLocaleInfoEx(pStr, LOCALE_SENGLANGUAGE, wcBuffer, BUFFER_SIZE);
|
|
if (bufferSize == 0) {
|
|
wprintf(L"Locale %s had error %d\n", pStr, GetLastError());
|
|
return (TRUE);
|
|
}
|
|
|
|
LCID lcid = LocaleNameToLCID(pStr, nullptr);
|
|
if (lcid == 0) {
|
|
wprintf(L"Error %d getting LCID\n", GetLastError());
|
|
return (TRUE);
|
|
}
|
|
|
|
if (lcid > 0x8000) {
|
|
wprintf(L"//");
|
|
}
|
|
wprintf(L" { 0x%.4x, \"%s\" }, //%s\n", lcid, pStr, wcBuffer);
|
|
|
|
return (TRUE);
|
|
}
|
|
|
|
int main(int argc, wchar_t* argv[]) {
|
|
EnumSystemLocalesEx(MyFuncLocaleEx, LOCALE_ALL, nullptr, nullptr);
|
|
}
|