| author | |
| committer | |
| log | fb5e03b983f7a7a776b4f67f2426da6b7ecfdb0c |
| tree | c54282c7897e95dd89a5374c599372ef750f212e |
| parent | a682b0acb6e74348117eddffe6b966e7720efa61 |
| parent | 26613bfa011ec63b1f3a141e0201223853cc04e6 |
| signature |
windows.unexpectedError prints a human friendly string6 files changed, 415 insertions(+), 1 deletions(-)
CMakeLists.txt+2| ... | @@ -630,9 +630,11 @@ set(ZIG_STD_FILES | ... | @@ -630,9 +630,11 @@ set(ZIG_STD_FILES |
| 630 | "os/windows/bits.zig" | 630 | "os/windows/bits.zig" |
| 631 | "os/windows/error.zig" | 631 | "os/windows/error.zig" |
| 632 | "os/windows/kernel32.zig" | 632 | "os/windows/kernel32.zig" |
| 633 | "os/windows/lang.zig" | ||
| 633 | "os/windows/ntdll.zig" | 634 | "os/windows/ntdll.zig" |
| 634 | "os/windows/ole32.zig" | 635 | "os/windows/ole32.zig" |
| 635 | "os/windows/shell32.zig" | 636 | "os/windows/shell32.zig" |
| 637 | "os/windows/sublang.zig" | ||
| 636 | "os/zen.zig" | 638 | "os/zen.zig" |
| 637 | "packed_int_array.zig" | 639 | "packed_int_array.zig" |
| 638 | "pdb.zig" | 640 | "pdb.zig" |
std/os/windows.zig+13-1| ... | @@ -756,11 +756,23 @@ pub fn sliceToPrefixedSuffixedFileW(s: []const u8, comptime suffix: []const u16) | ... | @@ -756,11 +756,23 @@ pub fn sliceToPrefixedSuffixedFileW(s: []const u8, comptime suffix: []const u16) |
| 756 | return result; | 756 | return result; |
| 757 | } | 757 | } |
| 758 | 758 | ||
| 759 | inline fn MAKELANGID(p: c_ushort, s: c_ushort) LANGID { | ||
| 760 | return (s << 10) | p; | ||
| 761 | } | ||
| 762 | |||
| 759 | /// Call this when you made a windows DLL call or something that does SetLastError | 763 | /// Call this when you made a windows DLL call or something that does SetLastError |
| 760 | /// and you get an unexpected error. | 764 | /// and you get an unexpected error. |
| 761 | pub fn unexpectedError(err: DWORD) std.os.UnexpectedError { | 765 | pub fn unexpectedError(err: DWORD) std.os.UnexpectedError { |
| 762 | if (std.os.unexpected_error_tracing) { | 766 | if (std.os.unexpected_error_tracing) { |
| 763 | std.debug.warn("unexpected GetLastError(): {}\n", err); | 767 | // 614 is the length of the longest windows error desciption |
| 768 | var buf_u16: [614]u16 = undefined; | ||
| 769 | var buf_u8: [614]u8 = undefined; | ||
| 770 | var len = kernel32.FormatMessageW( | ||
| 771 | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, | ||
| 772 | null, err, MAKELANGID(LANG.NEUTRAL, SUBLANG.DEFAULT), | ||
| 773 | buf_u16[0..].ptr, buf_u16.len / @sizeOf(TCHAR), null); | ||
| 774 | _ = std.unicode.utf16leToUtf8(&buf_u8, buf_u16[0..len]) catch unreachable; | ||
| 775 | std.debug.warn("error.Unexpected: GetLastError({}): {}\n", err, buf_u8[0..len]); | ||
| 764 | std.debug.dumpCurrentStackTrace(null); | 776 | std.debug.dumpCurrentStackTrace(null); |
| 765 | } | 777 | } |
| 766 | return error.Unexpected; | 778 | return error.Unexpected; |
std/os/windows/bits.zig+14| ... | @@ -6,6 +6,8 @@ const assert = std.debug.assert; | ... | @@ -6,6 +6,8 @@ const assert = std.debug.assert; |
| 6 | const maxInt = std.math.maxInt; | 6 | const maxInt = std.math.maxInt; |
| 7 | 7 | ||
| 8 | pub const ERROR = @import("error.zig"); | 8 | pub const ERROR = @import("error.zig"); |
| 9 | pub const LANG = @import("lang.zig"); | ||
| 10 | pub const SUBLANG = @import("sublang.zig"); | ||
| 9 | 11 | ||
| 10 | /// The standard input device. Initially, this is the console input buffer, CONIN$. | 12 | /// The standard input device. Initially, this is the console input buffer, CONIN$. |
| 11 | pub const STD_INPUT_HANDLE = maxInt(DWORD) - 10 + 1; | 13 | pub const STD_INPUT_HANDLE = maxInt(DWORD) - 10 + 1; |
| ... | @@ -55,6 +57,10 @@ pub const ULONG = u32; | ... | @@ -55,6 +57,10 @@ pub const ULONG = u32; |
| 55 | pub const LONG = i32; | 57 | pub const LONG = i32; |
| 56 | pub const ULONGLONG = u64; | 58 | pub const ULONGLONG = u64; |
| 57 | pub const LONGLONG = i64; | 59 | pub const LONGLONG = i64; |
| 60 | pub const HLOCAL = HANDLE; | ||
| 61 | pub const LANGID = c_ushort; | ||
| 62 | |||
| 63 | pub const va_list = *@OpaqueType(); | ||
| 58 | 64 | ||
| 59 | pub const TRUE = 1; | 65 | pub const TRUE = 1; |
| 60 | pub const FALSE = 0; | 66 | pub const FALSE = 0; |
| ... | @@ -525,3 +531,11 @@ pub const COINIT = extern enum { | ... | @@ -525,3 +531,11 @@ pub const COINIT = extern enum { |
| 525 | /// > this expansion applies to the total length. | 531 | /// > this expansion applies to the total length. |
| 526 | /// from https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file#maximum-path-length-limitation | 532 | /// from https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file#maximum-path-length-limitation |
| 527 | pub const PATH_MAX_WIDE = 32767; | 533 | pub const PATH_MAX_WIDE = 32767; |
| 534 | |||
| 535 | pub const FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100; | ||
| 536 | pub const FORMAT_MESSAGE_ARGUMENT_ARRAY = 0x00002000; | ||
| 537 | pub const FORMAT_MESSAGE_FROM_HMODULE = 0x00000800; | ||
| 538 | pub const FORMAT_MESSAGE_FROM_STRING = 0x00000400; | ||
| 539 | pub const FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000; | ||
| 540 | pub const FORMAT_MESSAGE_IGNORE_INSERTS = 0x00000200; | ||
| 541 | pub const FORMAT_MESSAGE_MAX_WIDTH_MASK = 0x000000FF; |
std/os/windows/kernel32.zig+2| ... | @@ -50,6 +50,8 @@ pub extern "kernel32" stdcallcc fn FindFirstFileW(lpFileName: [*]const u16, lpFi | ... | @@ -50,6 +50,8 @@ pub extern "kernel32" stdcallcc fn FindFirstFileW(lpFileName: [*]const u16, lpFi |
| 50 | pub extern "kernel32" stdcallcc fn FindClose(hFindFile: HANDLE) BOOL; | 50 | pub extern "kernel32" stdcallcc fn FindClose(hFindFile: HANDLE) BOOL; |
| 51 | pub extern "kernel32" stdcallcc fn FindNextFileW(hFindFile: HANDLE, lpFindFileData: *WIN32_FIND_DATAW) BOOL; | 51 | pub extern "kernel32" stdcallcc fn FindNextFileW(hFindFile: HANDLE, lpFindFileData: *WIN32_FIND_DATAW) BOOL; |
| 52 | 52 | ||
| 53 | pub extern "kernel32" stdcallcc fn FormatMessageW(dwFlags: DWORD, lpSource: ?LPVOID, dwMessageId: DWORD, dwLanguageId: DWORD, lpBuffer: LPWSTR, nSize: DWORD, Arguments: ?*va_list) DWORD; | ||
| 54 | |||
| 53 | pub extern "kernel32" stdcallcc fn FreeEnvironmentStringsW(penv: [*]u16) BOOL; | 55 | pub extern "kernel32" stdcallcc fn FreeEnvironmentStringsW(penv: [*]u16) BOOL; |
| 54 | 56 | ||
| 55 | pub extern "kernel32" stdcallcc fn GetCommandLineA() LPSTR; | 57 | pub extern "kernel32" stdcallcc fn GetCommandLineA() LPSTR; |
std/os/windows/lang.zig created+140| ... | @@ -0,0 +1,140 @@ | ||
| 1 | pub const NEUTRAL = 0x00; | ||
| 2 | pub const INVARIANT = 0x7f; | ||
| 3 | pub const AFRIKAANS = 0x36; | ||
| 4 | pub const ALBANIAN = 0x1c; | ||
| 5 | pub const ALSATIAN = 0x84; | ||
| 6 | pub const AMHARIC = 0x5e; | ||
| 7 | pub const ARABIC = 0x01; | ||
| 8 | pub const ARMENIAN = 0x2b; | ||
| 9 | pub const ASSAMESE = 0x4d; | ||
| 10 | pub const AZERI = 0x2c; | ||
| 11 | pub const AZERBAIJANI = 0x2c; | ||
| 12 | pub const BANGLA = 0x45; | ||
| 13 | pub const BASHKIR = 0x6d; | ||
| 14 | pub const BASQUE = 0x2d; | ||
| 15 | pub const BELARUSIAN = 0x23; | ||
| 16 | pub const BENGALI = 0x45; | ||
| 17 | pub const BRETON = 0x7e; | ||
| 18 | pub const BOSNIAN = 0x1a; | ||
| 19 | pub const BOSNIAN_NEUTRAL = 0x781a; | ||
| 20 | pub const BULGARIAN = 0x02; | ||
| 21 | pub const CATALAN = 0x03; | ||
| 22 | pub const CENTRAL_KURDISH = 0x92; | ||
| 23 | pub const CHEROKEE = 0x5c; | ||
| 24 | pub const CHINESE = 0x04; | ||
| 25 | pub const CHINESE_SIMPLIFIED = 0x04; | ||
| 26 | pub const CHINESE_TRADITIONAL = 0x7c04; | ||
| 27 | pub const CORSICAN = 0x83; | ||
| 28 | pub const CROATIAN = 0x1a; | ||
| 29 | pub const CZECH = 0x05; | ||
| 30 | pub const DANISH = 0x06; | ||
| 31 | pub const DARI = 0x8c; | ||
| 32 | pub const DIVEHI = 0x65; | ||
| 33 | pub const DUTCH = 0x13; | ||
| 34 | pub const ENGLISH = 0x09; | ||
| 35 | pub const ESTONIAN = 0x25; | ||
| 36 | pub const FAEROESE = 0x38; | ||
| 37 | pub const FARSI = 0x29; | ||
| 38 | pub const FILIPINO = 0x64; | ||
| 39 | pub const FINNISH = 0x0b; | ||
| 40 | pub const FRENCH = 0x0c; | ||
| 41 | pub const FRISIAN = 0x62; | ||
| 42 | pub const FULAH = 0x67; | ||
| 43 | pub const GALICIAN = 0x56; | ||
| 44 | pub const GEORGIAN = 0x37; | ||
| 45 | pub const GERMAN = 0x07; | ||
| 46 | pub const GREEK = 0x08; | ||
| 47 | pub const GREENLANDIC = 0x6f; | ||
| 48 | pub const GUJARATI = 0x47; | ||
| 49 | pub const HAUSA = 0x68; | ||
| 50 | pub const HAWAIIAN = 0x75; | ||
| 51 | pub const HEBREW = 0x0d; | ||
| 52 | pub const HINDI = 0x39; | ||
| 53 | pub const HUNGARIAN = 0x0e; | ||
| 54 | pub const ICELANDIC = 0x0f; | ||
| 55 | pub const IGBO = 0x70; | ||
| 56 | pub const INDONESIAN = 0x21; | ||
| 57 | pub const INUKTITUT = 0x5d; | ||
| 58 | pub const IRISH = 0x3c; | ||
| 59 | pub const ITALIAN = 0x10; | ||
| 60 | pub const JAPANESE = 0x11; | ||
| 61 | pub const KANNADA = 0x4b; | ||
| 62 | pub const KASHMIRI = 0x60; | ||
| 63 | pub const KAZAK = 0x3f; | ||
| 64 | pub const KHMER = 0x53; | ||
| 65 | pub const KICHE = 0x86; | ||
| 66 | pub const KINYARWANDA = 0x87; | ||
| 67 | pub const KONKANI = 0x57; | ||
| 68 | pub const KOREAN = 0x12; | ||
| 69 | pub const KYRGYZ = 0x40; | ||
| 70 | pub const LAO = 0x54; | ||
| 71 | pub const LATVIAN = 0x26; | ||
| 72 | pub const LITHUANIAN = 0x27; | ||
| 73 | pub const LOWER_SORBIAN = 0x2e; | ||
| 74 | pub const LUXEMBOURGISH = 0x6e; | ||
| 75 | pub const MACEDONIAN = 0x2f; | ||
| 76 | pub const MALAY = 0x3e; | ||
| 77 | pub const MALAYALAM = 0x4c; | ||
| 78 | pub const MALTESE = 0x3a; | ||
| 79 | pub const MANIPURI = 0x58; | ||
| 80 | pub const MAORI = 0x81; | ||
| 81 | pub const MAPUDUNGUN = 0x7a; | ||
| 82 | pub const MARATHI = 0x4e; | ||
| 83 | pub const MOHAWK = 0x7c; | ||
| 84 | pub const MONGOLIAN = 0x50; | ||
| 85 | pub const NEPALI = 0x61; | ||
| 86 | pub const NORWEGIAN = 0x14; | ||
| 87 | pub const OCCITAN = 0x82; | ||
| 88 | pub const ODIA = 0x48; | ||
| 89 | pub const ORIYA = 0x48; | ||
| 90 | pub const PASHTO = 0x63; | ||
| 91 | pub const PERSIAN = 0x29; | ||
| 92 | pub const POLISH = 0x15; | ||
| 93 | pub const PORTUGUESE = 0x16; | ||
| 94 | pub const PULAR = 0x67; | ||
| 95 | pub const PUNJABI = 0x46; | ||
| 96 | pub const QUECHUA = 0x6b; | ||
| 97 | pub const ROMANIAN = 0x18; | ||
| 98 | pub const ROMANSH = 0x17; | ||
| 99 | pub const RUSSIAN = 0x19; | ||
| 100 | pub const SAKHA = 0x85; | ||
| 101 | pub const SAMI = 0x3b; | ||
| 102 | pub const SANSKRIT = 0x4f; | ||
| 103 | pub const SCOTTISH_GAELIC = 0x91; | ||
| 104 | pub const SERBIAN = 0x1a; | ||
| 105 | pub const SERBIAN_NEUTRAL = 0x7c1a; | ||
| 106 | pub const SINDHI = 0x59; | ||
| 107 | pub const SINHALESE = 0x5b; | ||
| 108 | pub const SLOVAK = 0x1b; | ||
| 109 | pub const SLOVENIAN = 0x24; | ||
| 110 | pub const SOTHO = 0x6c; | ||
| 111 | pub const SPANISH = 0x0a; | ||
| 112 | pub const SWAHILI = 0x41; | ||
| 113 | pub const SWEDISH = 0x1d; | ||
| 114 | pub const SYRIAC = 0x5a; | ||
| 115 | pub const TAJIK = 0x28; | ||
| 116 | pub const TAMAZIGHT = 0x5f; | ||
| 117 | pub const TAMIL = 0x49; | ||
| 118 | pub const TATAR = 0x44; | ||
| 119 | pub const TELUGU = 0x4a; | ||
| 120 | pub const THAI = 0x1e; | ||
| 121 | pub const TIBETAN = 0x51; | ||
| 122 | pub const TIGRIGNA = 0x73; | ||
| 123 | pub const TIGRINYA = 0x73; | ||
| 124 | pub const TSWANA = 0x32; | ||
| 125 | pub const TURKISH = 0x1f; | ||
| 126 | pub const TURKMEN = 0x42; | ||
| 127 | pub const UIGHUR = 0x80; | ||
| 128 | pub const UKRAINIAN = 0x22; | ||
| 129 | pub const UPPER_SORBIAN = 0x2e; | ||
| 130 | pub const URDU = 0x20; | ||
| 131 | pub const UZBEK = 0x43; | ||
| 132 | pub const VALENCIAN = 0x03; | ||
| 133 | pub const VIETNAMESE = 0x2a; | ||
| 134 | pub const WELSH = 0x52; | ||
| 135 | pub const WOLOF = 0x88; | ||
| 136 | pub const XHOSA = 0x34; | ||
| 137 | pub const YAKUT = 0x85; | ||
| 138 | pub const YI = 0x78; | ||
| 139 | pub const YORUBA = 0x6a; | ||
| 140 | pub const ZULU = 0x35; | ||
std/os/windows/sublang.zig created+244| ... | @@ -0,0 +1,244 @@ | ||
| 1 | pub const NEUTRAL = 0x00; | ||
| 2 | pub const DEFAULT = 0x01; | ||
| 3 | pub const SYS_DEFAULT = 0x02; | ||
| 4 | pub const CUSTOM_DEFAULT = 0x03; | ||
| 5 | pub const CUSTOM_UNSPECIFIED = 0x04; | ||
| 6 | pub const UI_CUSTOM_DEFAULT = 0x05; | ||
| 7 | pub const AFRIKAANS_SOUTH_AFRICA = 0x01; | ||
| 8 | pub const ALBANIAN_ALBANIA = 0x01; | ||
| 9 | pub const ALSATIAN_FRANCE = 0x01; | ||
| 10 | pub const AMHARIC_ETHIOPIA = 0x01; | ||
| 11 | pub const ARABIC_SAUDI_ARABIA = 0x01; | ||
| 12 | pub const ARABIC_IRAQ = 0x02; | ||
| 13 | pub const ARABIC_EGYPT = 0x03; | ||
| 14 | pub const ARABIC_LIBYA = 0x04; | ||
| 15 | pub const ARABIC_ALGERIA = 0x05; | ||
| 16 | pub const ARABIC_MOROCCO = 0x06; | ||
| 17 | pub const ARABIC_TUNISIA = 0x07; | ||
| 18 | pub const ARABIC_OMAN = 0x08; | ||
| 19 | pub const ARABIC_YEMEN = 0x09; | ||
| 20 | pub const ARABIC_SYRIA = 0x0a; | ||
| 21 | pub const ARABIC_JORDAN = 0x0b; | ||
| 22 | pub const ARABIC_LEBANON = 0x0c; | ||
| 23 | pub const ARABIC_KUWAIT = 0x0d; | ||
| 24 | pub const ARABIC_UAE = 0x0e; | ||
| 25 | pub const ARABIC_BAHRAIN = 0x0f; | ||
| 26 | pub const ARABIC_QATAR = 0x10; | ||
| 27 | pub const ARMENIAN_ARMENIA = 0x01; | ||
| 28 | pub const ASSAMESE_INDIA = 0x01; | ||
| 29 | pub const AZERI_LATIN = 0x01; | ||
| 30 | pub const AZERI_CYRILLIC = 0x02; | ||
| 31 | pub const AZERBAIJANI_AZERBAIJAN_LATIN = 0x01; | ||
| 32 | pub const AZERBAIJANI_AZERBAIJAN_CYRILLIC = 0x02; | ||
| 33 | pub const BANGLA_INDIA = 0x01; | ||
| 34 | pub const BANGLA_BANGLADESH = 0x02; | ||
| 35 | pub const BASHKIR_RUSSIA = 0x01; | ||
| 36 | pub const BASQUE_BASQUE = 0x01; | ||
| 37 | pub const BELARUSIAN_BELARUS = 0x01; | ||
| 38 | pub const BENGALI_INDIA = 0x01; | ||
| 39 | pub const BENGALI_BANGLADESH = 0x02; | ||
| 40 | pub const BOSNIAN_BOSNIA_HERZEGOVINA_LATIN = 0x05; | ||
| 41 | pub const BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC = 0x08; | ||
| 42 | pub const BRETON_FRANCE = 0x01; | ||
| 43 | pub const BULGARIAN_BULGARIA = 0x01; | ||
| 44 | pub const CATALAN_CATALAN = 0x01; | ||
| 45 | pub const CENTRAL_KURDISH_IRAQ = 0x01; | ||
| 46 | pub const CHEROKEE_CHEROKEE = 0x01; | ||
| 47 | pub const CHINESE_TRADITIONAL = 0x01; | ||
| 48 | pub const CHINESE_SIMPLIFIED = 0x02; | ||
| 49 | pub const CHINESE_HONGKONG = 0x03; | ||
| 50 | pub const CHINESE_SINGAPORE = 0x04; | ||
| 51 | pub const CHINESE_MACAU = 0x05; | ||
| 52 | pub const CORSICAN_FRANCE = 0x01; | ||
| 53 | pub const CZECH_CZECH_REPUBLIC = 0x01; | ||
| 54 | pub const CROATIAN_CROATIA = 0x01; | ||
| 55 | pub const CROATIAN_BOSNIA_HERZEGOVINA_LATIN = 0x04; | ||
| 56 | pub const DANISH_DENMARK = 0x01; | ||
| 57 | pub const DARI_AFGHANISTAN = 0x01; | ||
| 58 | pub const DIVEHI_MALDIVES = 0x01; | ||
| 59 | pub const DUTCH = 0x01; | ||
| 60 | pub const DUTCH_BELGIAN = 0x02; | ||
| 61 | pub const ENGLISH_US = 0x01; | ||
| 62 | pub const ENGLISH_UK = 0x02; | ||
| 63 | pub const ENGLISH_AUS = 0x03; | ||
| 64 | pub const ENGLISH_CAN = 0x04; | ||
| 65 | pub const ENGLISH_NZ = 0x05; | ||
| 66 | pub const ENGLISH_EIRE = 0x06; | ||
| 67 | pub const ENGLISH_SOUTH_AFRICA = 0x07; | ||
| 68 | pub const ENGLISH_JAMAICA = 0x08; | ||
| 69 | pub const ENGLISH_CARIBBEAN = 0x09; | ||
| 70 | pub const ENGLISH_BELIZE = 0x0a; | ||
| 71 | pub const ENGLISH_TRINIDAD = 0x0b; | ||
| 72 | pub const ENGLISH_ZIMBABWE = 0x0c; | ||
| 73 | pub const ENGLISH_PHILIPPINES = 0x0d; | ||
| 74 | pub const ENGLISH_INDIA = 0x10; | ||
| 75 | pub const ENGLISH_MALAYSIA = 0x11; | ||
| 76 | pub const ENGLISH_SINGAPORE = 0x12; | ||
| 77 | pub const ESTONIAN_ESTONIA = 0x01; | ||
| 78 | pub const FAEROESE_FAROE_ISLANDS = 0x01; | ||
| 79 | pub const FILIPINO_PHILIPPINES = 0x01; | ||
| 80 | pub const FINNISH_FINLAND = 0x01; | ||
| 81 | pub const FRENCH = 0x01; | ||
| 82 | pub const FRENCH_BELGIAN = 0x02; | ||
| 83 | pub const FRENCH_CANADIAN = 0x03; | ||
| 84 | pub const FRENCH_SWISS = 0x04; | ||
| 85 | pub const FRENCH_LUXEMBOURG = 0x05; | ||
| 86 | pub const FRENCH_MONACO = 0x06; | ||
| 87 | pub const FRISIAN_NETHERLANDS = 0x01; | ||
| 88 | pub const FULAH_SENEGAL = 0x02; | ||
| 89 | pub const GALICIAN_GALICIAN = 0x01; | ||
| 90 | pub const GEORGIAN_GEORGIA = 0x01; | ||
| 91 | pub const GERMAN = 0x01; | ||
| 92 | pub const GERMAN_SWISS = 0x02; | ||
| 93 | pub const GERMAN_AUSTRIAN = 0x03; | ||
| 94 | pub const GERMAN_LUXEMBOURG = 0x04; | ||
| 95 | pub const GERMAN_LIECHTENSTEIN = 0x05; | ||
| 96 | pub const GREEK_GREECE = 0x01; | ||
| 97 | pub const GREENLANDIC_GREENLAND = 0x01; | ||
| 98 | pub const GUJARATI_INDIA = 0x01; | ||
| 99 | pub const HAUSA_NIGERIA_LATIN = 0x01; | ||
| 100 | pub const HAWAIIAN_US = 0x01; | ||
| 101 | pub const HEBREW_ISRAEL = 0x01; | ||
| 102 | pub const HINDI_INDIA = 0x01; | ||
| 103 | pub const HUNGARIAN_HUNGARY = 0x01; | ||
| 104 | pub const ICELANDIC_ICELAND = 0x01; | ||
| 105 | pub const IGBO_NIGERIA = 0x01; | ||
| 106 | pub const INDONESIAN_INDONESIA = 0x01; | ||
| 107 | pub const INUKTITUT_CANADA = 0x01; | ||
| 108 | pub const INUKTITUT_CANADA_LATIN = 0x02; | ||
| 109 | pub const IRISH_IRELAND = 0x02; | ||
| 110 | pub const ITALIAN = 0x01; | ||
| 111 | pub const ITALIAN_SWISS = 0x02; | ||
| 112 | pub const JAPANESE_JAPAN = 0x01; | ||
| 113 | pub const KANNADA_INDIA = 0x01; | ||
| 114 | pub const KASHMIRI_SASIA = 0x02; | ||
| 115 | pub const KASHMIRI_INDIA = 0x02; | ||
| 116 | pub const KAZAK_KAZAKHSTAN = 0x01; | ||
| 117 | pub const KHMER_CAMBODIA = 0x01; | ||
| 118 | pub const KICHE_GUATEMALA = 0x01; | ||
| 119 | pub const KINYARWANDA_RWANDA = 0x01; | ||
| 120 | pub const KONKANI_INDIA = 0x01; | ||
| 121 | pub const KOREAN = 0x01; | ||
| 122 | pub const KYRGYZ_KYRGYZSTAN = 0x01; | ||
| 123 | pub const LAO_LAO = 0x01; | ||
| 124 | pub const LATVIAN_LATVIA = 0x01; | ||
| 125 | pub const LITHUANIAN = 0x01; | ||
| 126 | pub const LOWER_SORBIAN_GERMANY = 0x02; | ||
| 127 | pub const LUXEMBOURGISH_LUXEMBOURG = 0x01; | ||
| 128 | pub const MACEDONIAN_MACEDONIA = 0x01; | ||
| 129 | pub const MALAY_MALAYSIA = 0x01; | ||
| 130 | pub const MALAY_BRUNEI_DARUSSALAM = 0x02; | ||
| 131 | pub const MALAYALAM_INDIA = 0x01; | ||
| 132 | pub const MALTESE_MALTA = 0x01; | ||
| 133 | pub const MAORI_NEW_ZEALAND = 0x01; | ||
| 134 | pub const MAPUDUNGUN_CHILE = 0x01; | ||
| 135 | pub const MARATHI_INDIA = 0x01; | ||
| 136 | pub const MOHAWK_MOHAWK = 0x01; | ||
| 137 | pub const MONGOLIAN_CYRILLIC_MONGOLIA = 0x01; | ||
| 138 | pub const MONGOLIAN_PRC = 0x02; | ||
| 139 | pub const NEPALI_INDIA = 0x02; | ||
| 140 | pub const NEPALI_NEPAL = 0x01; | ||
| 141 | pub const NORWEGIAN_BOKMAL = 0x01; | ||
| 142 | pub const NORWEGIAN_NYNORSK = 0x02; | ||
| 143 | pub const OCCITAN_FRANCE = 0x01; | ||
| 144 | pub const ODIA_INDIA = 0x01; | ||
| 145 | pub const ORIYA_INDIA = 0x01; | ||
| 146 | pub const PASHTO_AFGHANISTAN = 0x01; | ||
| 147 | pub const PERSIAN_IRAN = 0x01; | ||
| 148 | pub const POLISH_POLAND = 0x01; | ||
| 149 | pub const PORTUGUESE = 0x02; | ||
| 150 | pub const PORTUGUESE_BRAZILIAN = 0x01; | ||
| 151 | pub const PULAR_SENEGAL = 0x02; | ||
| 152 | pub const PUNJABI_INDIA = 0x01; | ||
| 153 | pub const PUNJABI_PAKISTAN = 0x02; | ||
| 154 | pub const QUECHUA_BOLIVIA = 0x01; | ||
| 155 | pub const QUECHUA_ECUADOR = 0x02; | ||
| 156 | pub const QUECHUA_PERU = 0x03; | ||
| 157 | pub const ROMANIAN_ROMANIA = 0x01; | ||
| 158 | pub const ROMANSH_SWITZERLAND = 0x01; | ||
| 159 | pub const RUSSIAN_RUSSIA = 0x01; | ||
| 160 | pub const SAKHA_RUSSIA = 0x01; | ||
| 161 | pub const SAMI_NORTHERN_NORWAY = 0x01; | ||
| 162 | pub const SAMI_NORTHERN_SWEDEN = 0x02; | ||
| 163 | pub const SAMI_NORTHERN_FINLAND = 0x03; | ||
| 164 | pub const SAMI_LULE_NORWAY = 0x04; | ||
| 165 | pub const SAMI_LULE_SWEDEN = 0x05; | ||
| 166 | pub const SAMI_SOUTHERN_NORWAY = 0x06; | ||
| 167 | pub const SAMI_SOUTHERN_SWEDEN = 0x07; | ||
| 168 | pub const SAMI_SKOLT_FINLAND = 0x08; | ||
| 169 | pub const SAMI_INARI_FINLAND = 0x09; | ||
| 170 | pub const SANSKRIT_INDIA = 0x01; | ||
| 171 | pub const SCOTTISH_GAELIC = 0x01; | ||
| 172 | pub const SERBIAN_BOSNIA_HERZEGOVINA_LATIN = 0x06; | ||
| 173 | pub const SERBIAN_BOSNIA_HERZEGOVINA_CYRILLIC = 0x07; | ||
| 174 | pub const SERBIAN_MONTENEGRO_LATIN = 0x0b; | ||
| 175 | pub const SERBIAN_MONTENEGRO_CYRILLIC = 0x0c; | ||
| 176 | pub const SERBIAN_SERBIA_LATIN = 0x09; | ||
| 177 | pub const SERBIAN_SERBIA_CYRILLIC = 0x0a; | ||
| 178 | pub const SERBIAN_CROATIA = 0x01; | ||
| 179 | pub const SERBIAN_LATIN = 0x02; | ||
| 180 | pub const SERBIAN_CYRILLIC = 0x03; | ||
| 181 | pub const SINDHI_INDIA = 0x01; | ||
| 182 | pub const SINDHI_PAKISTAN = 0x02; | ||
| 183 | pub const SINDHI_AFGHANISTAN = 0x02; | ||
| 184 | pub const SINHALESE_SRI_LANKA = 0x01; | ||
| 185 | pub const SOTHO_NORTHERN_SOUTH_AFRICA = 0x01; | ||
| 186 | pub const SLOVAK_SLOVAKIA = 0x01; | ||
| 187 | pub const SLOVENIAN_SLOVENIA = 0x01; | ||
| 188 | pub const SPANISH = 0x01; | ||
| 189 | pub const SPANISH_MEXICAN = 0x02; | ||
| 190 | pub const SPANISH_MODERN = 0x03; | ||
| 191 | pub const SPANISH_GUATEMALA = 0x04; | ||
| 192 | pub const SPANISH_COSTA_RICA = 0x05; | ||
| 193 | pub const SPANISH_PANAMA = 0x06; | ||
| 194 | pub const SPANISH_DOMINICAN_REPUBLIC = 0x07; | ||
| 195 | pub const SPANISH_VENEZUELA = 0x08; | ||
| 196 | pub const SPANISH_COLOMBIA = 0x09; | ||
| 197 | pub const SPANISH_PERU = 0x0a; | ||
| 198 | pub const SPANISH_ARGENTINA = 0x0b; | ||
| 199 | pub const SPANISH_ECUADOR = 0x0c; | ||
| 200 | pub const SPANISH_CHILE = 0x0d; | ||
| 201 | pub const SPANISH_URUGUAY = 0x0e; | ||
| 202 | pub const SPANISH_PARAGUAY = 0x0f; | ||
| 203 | pub const SPANISH_BOLIVIA = 0x10; | ||
| 204 | pub const SPANISH_EL_SALVADOR = 0x11; | ||
| 205 | pub const SPANISH_HONDURAS = 0x12; | ||
| 206 | pub const SPANISH_NICARAGUA = 0x13; | ||
| 207 | pub const SPANISH_PUERTO_RICO = 0x14; | ||
| 208 | pub const SPANISH_US = 0x15; | ||
| 209 | pub const SWAHILI_KENYA = 0x01; | ||
| 210 | pub const SWEDISH = 0x01; | ||
| 211 | pub const SWEDISH_FINLAND = 0x02; | ||
| 212 | pub const SYRIAC_SYRIA = 0x01; | ||
| 213 | pub const TAJIK_TAJIKISTAN = 0x01; | ||
| 214 | pub const TAMAZIGHT_ALGERIA_LATIN = 0x02; | ||
| 215 | pub const TAMAZIGHT_MOROCCO_TIFINAGH = 0x04; | ||
| 216 | pub const TAMIL_INDIA = 0x01; | ||
| 217 | pub const TAMIL_SRI_LANKA = 0x02; | ||
| 218 | pub const TATAR_RUSSIA = 0x01; | ||
| 219 | pub const TELUGU_INDIA = 0x01; | ||
| 220 | pub const THAI_THAILAND = 0x01; | ||
| 221 | pub const TIBETAN_PRC = 0x01; | ||
| 222 | pub const TIGRIGNA_ERITREA = 0x02; | ||
| 223 | pub const TIGRINYA_ERITREA = 0x02; | ||
| 224 | pub const TIGRINYA_ETHIOPIA = 0x01; | ||
| 225 | pub const TSWANA_BOTSWANA = 0x02; | ||
| 226 | pub const TSWANA_SOUTH_AFRICA = 0x01; | ||
| 227 | pub const TURKISH_TURKEY = 0x01; | ||
| 228 | pub const TURKMEN_TURKMENISTAN = 0x01; | ||
| 229 | pub const UIGHUR_PRC = 0x01; | ||
| 230 | pub const UKRAINIAN_UKRAINE = 0x01; | ||
| 231 | pub const UPPER_SORBIAN_GERMANY = 0x01; | ||
| 232 | pub const URDU_PAKISTAN = 0x01; | ||
| 233 | pub const URDU_INDIA = 0x02; | ||
| 234 | pub const UZBEK_LATIN = 0x01; | ||
| 235 | pub const UZBEK_CYRILLIC = 0x02; | ||
| 236 | pub const VALENCIAN_VALENCIA = 0x02; | ||
| 237 | pub const VIETNAMESE_VIETNAM = 0x01; | ||
| 238 | pub const WELSH_UNITED_KINGDOM = 0x01; | ||
| 239 | pub const WOLOF_SENEGAL = 0x01; | ||
| 240 | pub const XHOSA_SOUTH_AFRICA = 0x01; | ||
| 241 | pub const YAKUT_RUSSIA = 0x01; | ||
| 242 | pub const YI_PRC = 0x01; | ||
| 243 | pub const YORUBA_NIGERIA = 0x01; | ||
| 244 | pub const ZULU_SOUTH_AFRICA = 0x01; | ||