Module: Win::National
- Extended by:
- Library
- Defined in:
- lib/win/national.rb
Overview
Contains various functions and constants related to LOCALE and TIME ZONES.
Constant Summary collapse
- CODE_PAGE =
Code page identifiers. Used for get_acp_string method.
{ 037 => 'IBM EBCDIC = U.S./Canada', 437 => 'OEM = United States', 500 => 'IBM EBCDIC - International', 708 => 'Arabic - ASMO 708', 709 => 'Arabic - ASMO 449+, BCON V4', 710 => 'Arabic - Transparent Arabic', 720 => 'Arabic - Transparent ASMO', 737 => 'OEM - Greek (formerly 437G)', 775 => 'OEM - Baltic', 850 => 'OEM - Multilingual Latin I', 852 => 'OEM - Latin II', 855 => 'OEM - Cyrillic (primarily Russian)', 857 => 'OEM - Turkish', 858 => 'OEM - Multilingual Latin I + Euro symbol', 860 => 'OEM - Portuguese', 861 => 'OEM - Icelandic', 862 => 'OEM - Hebrew', 863 => 'OEM - Canadian-French', 864 => 'OEM - Arabic', 865 => 'OEM - Nordic', 866 => 'OEM - Russian', 869 => 'OEM - Modern Greek', 870 => 'IBM EBCDIC - Multilingual/ROECE (Latin-2)', 874 => 'ANSI/OEM - Thai (same as 28605, ISO 8859-15)', 875 => 'IBM EBCDIC - Modern Greek', 932 => 'ANSI/OEM - Japanese, Shift-JIS', 936 => 'ANSI/OEM - Simplified Chinese (PRC, Singapore)', 949 => 'ANSI/OEM - Korean (Unified Hangul Code)', 950 => 'ANSI/OEM - Traditional Chinese (Taiwan; Hong Kong SAR, PRC)', 1026 => 'IBM EBCDIC - Turkish (Latin-5)', 1047 => 'IBM EBCDIC - Latin 1/Open System', 1140 => 'IBM EBCDIC - U.S./Canada (037 + Euro symbol)', 1141 => 'IBM EBCDIC - Germany (20273 + Euro symbol)', 1142 => 'IBM EBCDIC - Denmark/Norway (20277 + Euro symbol)', 1143 => 'IBM EBCDIC - Finland/Sweden (20278 + Euro symbol)', 1144 => 'IBM EBCDIC - Italy (20280 + Euro symbol)', 1145 => 'IBM EBCDIC - Latin America/Spain (20284 + Euro symbol)', 1146 => 'IBM EBCDIC - United Kingdom (20285 + Euro symbol)', 1147 => 'IBM EBCDIC - France (20297 + Euro symbol)', 1148 => 'IBM EBCDIC - International (500 + Euro symbol)', 1149 => 'IBM EBCDIC - Icelandic (20871 + Euro symbol)', 1200 => 'Unicode UCS-2 Little-Endian (BMP of ISO 10646)', 1201 => 'Unicode UCS-2 Big-Endian', 1250 => 'ANSI - Central European', 1251 => 'ANSI - Cyrillic', 1252 => 'ANSI - Latin I', 1253 => 'ANSI - Greek', 1254 => 'ANSI - Turkish', 1255 => 'ANSI - Hebrew', 1256 => 'ANSI - Arabic', 1257 => 'ANSI - Baltic', 1258 => 'ANSI/OEM - Vietnamese', 1361 => 'Korean (Johab)', 10000 => 'MAC - Roman', 10001 => 'MAC - Japanese', 10002 => 'MAC - Traditional Chinese (Big5)', 10003 => 'MAC - Korean', 10004 => 'MAC - Arabic', 10005 => 'MAC - Hebrew', 10006 => 'MAC - Greek I', 10007 => 'MAC - Cyrillic', 10008 => 'MAC - Simplified Chinese (GB 2312)', 10010 => 'MAC - Romania', 10017 => 'MAC - Ukraine', 10021 => 'MAC - Thai', 10029 => 'MAC - Latin II', 10079 => 'MAC - Icelandic', 10081 => 'MAC - Turkish', 10082 => 'MAC - Croatia', 12000 => 'Unicode UCS-4 Little-Endian', 12001 => 'Unicode UCS-4 Big-Endian', 20000 => 'CNS - Taiwan', 20001 => 'TCA - Taiwan', 20002 => 'Eten - Taiwan', 20003 => 'IBM5550 - Taiwan', 20004 => 'TeleText - Taiwan', 20005 => 'Wang - Taiwan', 20105 => 'IA5 IRV International Alphabet No. 5 (7-bit)', 20106 => 'IA5 German (7-bit)', 20107 => 'IA5 Swedish (7-bit)', 20108 => 'IA5 Norwegian (7-bit)', 20127 => 'US-ASCII (7-bit)', 20261 => 'T.61', 20269 => 'ISO 6937 Non-Spacing Accent', 20273 => 'IBM EBCDIC - Germany', 20277 => 'IBM EBCDIC - Denmark/Norway', 20278 => 'IBM EBCDIC - Finland/Sweden', 20280 => 'IBM EBCDIC - Italy', 20284 => 'IBM EBCDIC - Latin America/Spain', 20285 => 'IBM EBCDIC - United Kingdom', 20290 => 'IBM EBCDIC - Japanese Katakana Extended', 20297 => 'IBM EBCDIC - France', 20420 => 'IBM EBCDIC - Arabic', 20423 => 'IBM EBCDIC - Greek', 20424 => 'IBM EBCDIC - Hebrew', 20833 => 'IBM EBCDIC - Korean Extended', 20838 => 'IBM EBCDIC - Thai', 20866 => 'Russian - KOI8-R', 20871 => 'IBM EBCDIC - Icelandic', 20880 => 'IBM EBCDIC - Cyrillic (Russian)', 20905 => 'IBM EBCDIC - Turkish', 20924 => 'IBM EBCDIC - Latin-1/Open System (1047 + Euro symbol)', 20932 => 'JIS X 0208-1990 & 0121-1990', 20936 => 'Simplified Chinese (GB2312)', 21025 => 'IBM EBCDIC - Cyrillic (Serbian, Bulgarian)', 21027 => '(deprecated)', 21866 => 'Ukrainian (KOI8-U)', 28591 => 'ISO 8859-1 Latin I', 28592 => 'ISO 8859-2 Central Europe', 28593 => 'ISO 8859-3 Latin 3', 28594 => 'ISO 8859-4 Baltic', 28595 => 'ISO 8859-5 Cyrillic', 28596 => 'ISO 8859-6 Arabic', 28597 => 'ISO 8859-7 Greek', 28598 => 'ISO 8859-8 Hebrew', 28599 => 'ISO 8859-9 Latin 5', 28605 => 'ISO 8859-15 Latin 9', 29001 => 'Europa 3', 38598 => 'ISO 8859-8 Hebrew', 50220 => 'ISO 2022 Japanese with no halfwidth Katakana', 50221 => 'ISO 2022 Japanese with halfwidth Katakana', 50222 => 'ISO 2022 Japanese JIS X 0201-1989', 50225 => 'ISO 2022 Korean', 50227 => 'ISO 2022 Simplified Chinese', 50229 => 'ISO 2022 Traditional Chinese', 50930 => 'Japanese (Katakana) Extended', 50931 => 'US/Canada and Japanese', 50933 => 'Korean Extended and Korean', 50935 => 'Simplified Chinese Extended and Simplified Chinese', 50936 => 'Simplified Chinese', 50937 => 'US/Canada and Traditional Chinese', 50939 => 'Japanese (Latin) Extended and Japanese', 51932 => 'EUC - Japanese', 51936 => 'EUC - Simplified Chinese', 51949 => 'EUC - Korean', 51950 => 'EUC - Traditional Chinese', 52936 => 'HZ-GB2312 Simplified Chinese', 54936 => 'Windows XP: GB18030 Simplified Chinese (4 Byte)', 57002 => 'ISCII Devanagari', 57003 => 'ISCII Bengali', 57004 => 'ISCII Tamil', 57005 => 'ISCII Telugu', 57006 => 'ISCII Assamese', 57007 => 'ISCII Oriya', 57008 => 'ISCII Kannada', 57009 => 'ISCII Malayalam', 57010 => 'ISCII Gujarati', 57011 => 'ISCII Punjabi', 65000 => 'Unicode UTF-7', 65001 => 'Unicode UTF-8' }
- LANG_NEUTRAL =
0x00
- LANG_INVARIANT =
0x7f
- LANG_AFRIKAANS =
0x36
- LANG_ALBANIAN =
0x1c
- LANG_ARABIC =
0x01
- LANG_ARMENIAN =
0x2b
- LANG_ASSAMESE =
0x4d
- LANG_AZERI =
0x2c
- LANG_BASQUE =
0x2d
- LANG_BELARUSIAN =
0x23
- LANG_BENGALI =
0x45
- LANG_BOSNIAN =
0x1a
- LANG_BULGARIAN =
0x02
- LANG_CATALAN =
0x03
- LANG_CHINESE =
0x04
- LANG_CROATIAN =
0x1a
- LANG_CZECH =
0x05
- LANG_DANISH =
0x06
- LANG_DIVEHI =
0x65
- LANG_DUTCH =
0x13
- LANG_ENGLISH =
0x09
- LANG_ESTONIAN =
0x25
- LANG_FAEROESE =
0x38
- LANG_FARSI =
0x29
- LANG_FINNISH =
0x0b
- LANG_FRENCH =
0x0c
- LANG_GALICIAN =
0x56
- LANG_GEORGIAN =
0x37
- LANG_GERMAN =
0x07
- LANG_GREEK =
0x08
- LANG_GUJARATI =
0x47
- LANG_HEBREW =
0x0d
- LANG_HINDI =
0x39
- LANG_HUNGARIAN =
0x0e
- LANG_ICELANDIC =
0x0f
- LANG_INDONESIAN =
0x21
- LANG_ITALIAN =
0x10
- LANG_JAPANESE =
0x11
- LANG_KANNADA =
0x4b
- LANG_KASHMIRI =
0x60
- LANG_KAZAK =
0x3f
- LANG_KONKANI =
0x57
- LANG_KOREAN =
0x12
- LANG_KYRGYZ =
0x40
- LANG_LATVIAN =
0x26
- LANG_LITHUANIAN =
0x27
- LANG_MACEDONIAN =
0x2f
- LANG_MALAY =
0x3e
- LANG_MALAYALAM =
0x4c
- LANG_MALTESE =
0x3a
- LANG_MANIPURI =
0x58
- LANG_MAORI =
0x81
- LANG_MARATHI =
0x4e
- LANG_MONGOLIAN =
0x50
- LANG_NEPALI =
0x61
- LANG_NORWEGIAN =
0x14
- LANG_ORIYA =
0x48
- LANG_POLISH =
0x15
- LANG_PORTUGUESE =
0x16
- LANG_PUNJABI =
0x46
- LANG_QUECHUA =
0x6b
- LANG_ROMANIAN =
0x18
- LANG_RUSSIAN =
0x19
- LANG_SAMI =
0x3b
- LANG_SANSKRIT =
0x4f
- LANG_SERBIAN =
0x1a
- LANG_SINDHI =
0x59
- LANG_SLOVAK =
0x1b
- LANG_SLOVENIAN =
0x24
- LANG_SOTHO =
0x6c
- LANG_SPANISH =
0x0a
- LANG_SWAHILI =
0x41
- LANG_SWEDISH =
0x1d
- LANG_SYRIAC =
0x5a
- LANG_TAMIL =
0x49
- LANG_TATAR =
0x44
- LANG_TELUGU =
0x4a
- LANG_THAI =
0x1e
- LANG_TSWANA =
0x32
- LANG_TURKISH =
0x1f
- LANG_UKRAINIAN =
0x22
- LANG_URDU =
0x20
- LANG_UZBEK =
0x43
- LANG_VIETNAMESE =
0x2a
- LANG_WELSH =
0x52
- LANG_XHOSA =
0x34
- LANG_ZULU =
0x35
- SUBLANG_NEUTRAL =
language neutral
0x00
- SUBLANG_DEFAULT =
user default
0x01
- SUBLANG_SYS_DEFAULT =
system default
0x02
- SUBLANG_ARABIC_SAUDI_ARABIA =
Arabic (Saudi Arabia)
0x01
- SUBLANG_ARABIC_IRAQ =
Arabic (Iraq)
0x02
- SUBLANG_ARABIC_EGYPT =
Arabic (Egypt)
0x03
- SUBLANG_ARABIC_LIBYA =
Arabic (Libya)
0x04
- SUBLANG_ARABIC_ALGERIA =
Arabic (Algeria)
0x05
- SUBLANG_ARABIC_MOROCCO =
Arabic (Morocco)
0x06
- SUBLANG_ARABIC_TUNISIA =
Arabic (Tunisia)
0x07
- SUBLANG_ARABIC_OMAN =
Arabic (Oman)
0x08
- SUBLANG_ARABIC_YEMEN =
Arabic (Yemen)
0x09
- SUBLANG_ARABIC_SYRIA =
Arabic (Syria)
0x0a
- SUBLANG_ARABIC_JORDAN =
Arabic (Jordan)
0x0b
- SUBLANG_ARABIC_LEBANON =
Arabic (Lebanon)
0x0c
- SUBLANG_ARABIC_KUWAIT =
Arabic (Kuwait)
0x0d
- SUBLANG_ARABIC_UAE =
Arabic (U.A.E)
0x0e
- SUBLANG_ARABIC_BAHRAIN =
Arabic (Bahrain)
0x0f
- SUBLANG_ARABIC_QATAR =
Arabic (Qatar)
0x10
- SUBLANG_AZERI_LATIN =
Azeri (Latin)
0x01
- SUBLANG_AZERI_CYRILLIC =
Azeri (Cyrillic)
0x02
- SUBLANG_CHINESE_TRADITIONAL =
Chinese (Taiwan)
0x01
- SUBLANG_CHINESE_SIMPLIFIED =
Chinese (PR China)
0x02
- SUBLANG_CHINESE_HONGKONG =
Chinese (Hong Kong S.A.R., P.R.C.)
0x03
- SUBLANG_CHINESE_SINGAPORE =
Chinese (Singapore)
0x04
- SUBLANG_CHINESE_MACAU =
Chinese (Macau S.A.R.)
0x05
- SUBLANG_CROATIAN_CROATIA =
Croatian (Croatia)
0x01
- SUBLANG_DUTCH =
Dutch
0x01
- SUBLANG_DUTCH_BELGIAN =
Dutch (Belgian)
0x02
- SUBLANG_ENGLISH_US =
English (USA)
0x01
- SUBLANG_ENGLISH_UK =
English (UK)
0x02
- SUBLANG_ENGLISH_AUS =
English (Australian)
0x03
- SUBLANG_ENGLISH_CAN =
English (Canadian)
0x04
- SUBLANG_ENGLISH_NZ =
English (New Zealand)
0x05
- SUBLANG_ENGLISH_EIRE =
English (Irish)
0x06
- SUBLANG_ENGLISH_SOUTH_AFRICA =
English (South Africa)
0x07
- SUBLANG_ENGLISH_JAMAICA =
English (Jamaica)
0x08
- SUBLANG_ENGLISH_CARIBBEAN =
English (Caribbean)
0x09
- SUBLANG_ENGLISH_BELIZE =
English (Belize)
0x0a
- SUBLANG_ENGLISH_TRINIDAD =
English (Trinidad)
0x0b
- SUBLANG_ENGLISH_ZIMBABWE =
English (Zimbabwe)
0x0c
- SUBLANG_ENGLISH_PHILIPPINES =
English (Philippines)
0x0d
- SUBLANG_FRENCH =
French
0x01
- SUBLANG_FRENCH_BELGIAN =
French (Belgian)
0x02
- SUBLANG_FRENCH_CANADIAN =
French (Canadian)
0x03
- SUBLANG_FRENCH_SWISS =
French (Swiss)
0x04
- SUBLANG_FRENCH_LUXEMBOURG =
French (Luxembourg)
0x05
- SUBLANG_FRENCH_MONACO =
French (Monaco)
0x06
- SUBLANG_GERMAN =
German
0x01
- SUBLANG_GERMAN_SWISS =
German (Swiss)
0x02
- SUBLANG_GERMAN_AUSTRIAN =
German (Austrian)
0x03
- SUBLANG_GERMAN_LUXEMBOURG =
German (Luxembourg)
0x04
- SUBLANG_GERMAN_LIECHTENSTEIN =
German (Liechtenstein)
0x05
- SUBLANG_ITALIAN =
Italian
0x01
- SUBLANG_ITALIAN_SWISS =
Italian (Swiss)
0x02
- SUBLANG_KASHMIRI_SASIA =
Kashmiri (South Asia)
0x02
- SUBLANG_KASHMIRI_INDIA =
For app compatibility only
0x02
- SUBLANG_KOREAN =
Korean (Extended Wansung)
0x01
- SUBLANG_LITHUANIAN =
Lithuanian
0x01
- SUBLANG_MALAY_MALAYSIA =
Malay (Malaysia)
0x01
- SUBLANG_MALAY_BRUNEI_DARUSSALAM =
Malay (Brunei Darussalam)
0x02
- SUBLANG_NEPALI_INDIA =
Nepali (India)
0x02
- SUBLANG_NORWEGIAN_BOKMAL =
Norwegian (Bokmal)
0x01
- SUBLANG_NORWEGIAN_NYNORSK =
Norwegian (Nynorsk)
0x02
- SUBLANG_PORTUGUESE =
Portuguese
0x02
- SUBLANG_PORTUGUESE_BRAZILIAN =
Portuguese (Brazilian)
0x01
- SUBLANG_QUECHUA_BOLIVIA =
Quechua (Bolivia)
0x01
- SUBLANG_QUECHUA_ECUADOR =
Quechua (Ecuador)
0x02
- SUBLANG_QUECHUA_PERU =
Quechua (Peru)
0x03
- SUBLANG_SAMI_NORTHERN_NORWAY =
Northern Sami (Norway)
0x01
- SUBLANG_SAMI_NORTHERN_SWEDEN =
Northern Sami (Sweden)
0x02
- SUBLANG_SAMI_NORTHERN_FINLAND =
Northern Sami (Finland)
0x03
- SUBLANG_SAMI_LULE_NORWAY =
Lule Sami (Norway)
0x04
- SUBLANG_SAMI_LULE_SWEDEN =
Lule Sami (Sweden)
0x05
- SUBLANG_SAMI_SOUTHERN_NORWAY =
Southern Sami (Norway)
0x06
- SUBLANG_SAMI_SOUTHERN_SWEDEN =
Southern Sami (Sweden)
0x07
- SUBLANG_SAMI_SKOLT_FINLAND =
Skolt Sami (Finland)
0x08
- SUBLANG_SAMI_INARI_FINLAND =
Inari Sami (Finland)
0x09
- SUBLANG_SERBIAN_LATIN =
Serbian (Latin)
0x02
- SUBLANG_SERBIAN_CYRILLIC =
Serbian (Cyrillic)
0x03
- SUBLANG_SPANISH =
Spanish (Castilian)
0x01
- SUBLANG_SPANISH_MEXICAN =
Spanish (Mexican)
0x02
- SUBLANG_SPANISH_MODERN =
Spanish (Modern)
0x03
- SUBLANG_SPANISH_GUATEMALA =
Spanish (Guatemala)
0x04
- SUBLANG_SPANISH_COSTA_RICA =
Spanish (Costa Rica)
0x05
- SUBLANG_SPANISH_PANAMA =
Spanish (Panama)
0x06
- SUBLANG_SPANISH_VENEZUELA =
Spanish (Venezuela)
0x08
- SUBLANG_SPANISH_COLOMBIA =
Spanish (Colombia)
0x09
- SUBLANG_SPANISH_PERU =
Spanish (Peru)
0x0a
- SUBLANG_SPANISH_ARGENTINA =
Spanish (Argentina)
0x0b
- SUBLANG_SPANISH_ECUADOR =
Spanish (Ecuador)
0x0c
- SUBLANG_SPANISH_CHILE =
Spanish (Chile)
0x0d
- SUBLANG_SPANISH_URUGUAY =
Spanish (Uruguay)
0x0e
- SUBLANG_SPANISH_PARAGUAY =
Spanish (Paraguay)
0x0f
- SUBLANG_SPANISH_BOLIVIA =
Spanish (Bolivia)
0x10
- SUBLANG_SPANISH_EL_SALVADOR =
Spanish (El Salvador)
0x11
- SUBLANG_SPANISH_HONDURAS =
Spanish (Honduras)
0x12
- SUBLANG_SPANISH_NICARAGUA =
Spanish (Nicaragua)
0x13
- SUBLANG_SPANISH_PUERTO_RICO =
Spanish (Puerto Rico)
0x14
- SUBLANG_SWEDISH =
Swedish
0x01
- SUBLANG_SWEDISH_FINLAND =
Swedish (Finland)
0x02
- SUBLANG_URDU_PAKISTAN =
Urdu (Pakistan)
0x01
- SUBLANG_URDU_INDIA =
Urdu (India)
0x02
- SUBLANG_UZBEK_LATIN =
Uzbek (Latin)
0x01
- SUBLANG_UZBEK_CYRILLIC =
Uzbek (Cyrillic)
0x02
- LOCALE_NOUSEROVERRIDE =
0x80000000
- LOCALE_USE_CP_ACP =
0x40000000
- LOCALE_RETURN_NUMBER =
0x20000000
- LOCALE_ILANGUAGE =
Language ID
0x00000001
- LOCALE_SLANGUAGE =
Localized name of language
0x00000002
- LOCALE_SENGLANGUAGE =
English name of language
0x00001001
- LOCALE_SABBREVLANGNAME =
Abbreviated language name
0x00000003
- LOCALE_SNATIVELANGNAME =
Native name of language
0x00000004
- LOCALE_ICOUNTRY =
Country code
0x00000005
- LOCALE_SCOUNTRY =
Localized name of country
0x00000006
- LOCALE_SENGCOUNTRY =
English name of country
0x00001002
- LOCALE_SABBREVCTRYNAME =
Abbreviated country name
0x00000007
- LOCALE_SNATIVECTRYNAME =
Native name of country
0x00000008
- LOCALE_IDEFAULTLANGUAGE =
default language id
0x00000009
- LOCALE_IDEFAULTCOUNTRY =
default country code
0x0000000A
- LOCALE_IDEFAULTCODEPAGE =
default oem code page
0x0000000B
- LOCALE_IDEFAULTANSICODEPAGE =
default ansi code page
0x00001004
- LOCALE_IDEFAULTMACCODEPAGE =
default mac code page
0x00001011
- LOCALE_SLIST =
list item separator
0x0000000C
- LOCALE_IMEASURE =
0 = metric, 1 = US
0x0000000D
- LOCALE_SDECIMAL =
decimal separator
0x0000000E
- LOCALE_STHOUSAND =
thousand separator
0x0000000F
- LOCALE_SGROUPING =
digit grouping
0x00000010
- LOCALE_IDIGITS =
number of fractional digits
0x00000011
- LOCALE_ILZERO =
leading zeros for decimal
0x00000012
- LOCALE_INEGNUMBER =
negative number mode
0x00001010
- LOCALE_SNATIVEDIGITS =
native ascii 0-9
0x00000013
- LOCALE_SCURRENCY =
local monetary symbol
0x00000014
- LOCALE_SINTLSYMBOL =
intl monetary symbol
0x00000015
- LOCALE_SMONDECIMALSEP =
monetary decimal separator
0x00000016
- LOCALE_SMONTHOUSANDSEP =
monetary thousand separator
0x00000017
- LOCALE_SMONGROUPING =
monetary grouping
0x00000018
- LOCALE_ICURRDIGITS =
# local monetary digits
0x00000019
- LOCALE_IINTLCURRDIGITS =
# intl monetary digits
0x0000001A
- LOCALE_ICURRENCY =
positive currency mode
0x0000001B
- LOCALE_INEGCURR =
negative currency mode
0x0000001C
- LOCALE_SDATE =
date separator
0x0000001D
- LOCALE_STIME =
time separator
0x0000001E
- LOCALE_SSHORTDATE =
short date format string
0x0000001F
- LOCALE_SLONGDATE =
long date format string
0x00000020
- LOCALE_STIMEFORMAT =
time format string
0x00001003
- LOCALE_IDATE =
short date format ordering
0x00000021
- LOCALE_ILDATE =
long date format ordering
0x00000022
- LOCALE_ITIME =
time format specifier
0x00000023
- LOCALE_ITIMEMARKPOSN =
time marker position
0x00001005
- LOCALE_ICENTURY =
century format specifier (short date)
0x00000024
- LOCALE_ITLZERO =
leading zeros in time field
0x00000025
- LOCALE_IDAYLZERO =
leading zeros in day field (short date)
0x00000026
- LOCALE_IMONLZERO =
leading zeros in month field (short date)
0x00000027
- LOCALE_S1159 =
AM designator
0x00000028
- LOCALE_S2359 =
PM designator
0x00000029
- LOCALE_ICALENDARTYPE =
type of calendar specifier
0x00001009
- LOCALE_IOPTIONALCALENDAR =
additional calendar types specifier
0x0000100B
- LOCALE_IFIRSTDAYOFWEEK =
first day of week specifier
0x0000100C
- LOCALE_IFIRSTWEEKOFYEAR =
first week of year specifier
0x0000100D
- LOCALE_SDAYNAME1 =
long name for Monday
0x0000002A
- LOCALE_SDAYNAME2 =
long name for Tuesday
0x0000002B
- LOCALE_SDAYNAME3 =
long name for Wednesday
0x0000002C
- LOCALE_SDAYNAME4 =
long name for Thursday
0x0000002D
- LOCALE_SDAYNAME5 =
long name for Friday
0x0000002E
- LOCALE_SDAYNAME6 =
long name for Saturday
0x0000002F
- LOCALE_SDAYNAME7 =
long name for Sunday
0x00000030
- LOCALE_SABBREVDAYNAME1 =
abbreviated name for Monday
0x00000031
- LOCALE_SABBREVDAYNAME2 =
abbreviated name for Tuesday
0x00000032
- LOCALE_SABBREVDAYNAME3 =
abbreviated name for Wednesday
0x00000033
- LOCALE_SABBREVDAYNAME4 =
abbreviated name for Thursday
0x00000034
- LOCALE_SABBREVDAYNAME5 =
abbreviated name for Friday
0x00000035
- LOCALE_SABBREVDAYNAME6 =
abbreviated name for Saturday
0x00000036
- LOCALE_SABBREVDAYNAME7 =
abbreviated name for Sunday
0x00000037
- LOCALE_SMONTHNAME1 =
long name for January
0x00000038
- LOCALE_SMONTHNAME2 =
long name for February
0x00000039
- LOCALE_SMONTHNAME3 =
long name for March
0x0000003A
- LOCALE_SMONTHNAME4 =
long name for April
0x0000003B
- LOCALE_SMONTHNAME5 =
long name for May
0x0000003C
- LOCALE_SMONTHNAME6 =
long name for June
0x0000003D
- LOCALE_SMONTHNAME7 =
long name for July
0x0000003E
- LOCALE_SMONTHNAME8 =
long name for August
0x0000003F
- LOCALE_SMONTHNAME9 =
long name for September
0x00000040
- LOCALE_SMONTHNAME10 =
long name for October
0x00000041
- LOCALE_SMONTHNAME11 =
long name for November
0x00000042
- LOCALE_SMONTHNAME12 =
long name for December
0x00000043
- LOCALE_SMONTHNAME13 =
long name for 13th month (if exists)
0x0000100E
- LOCALE_SABBREVMONTHNAME1 =
abbreviated name for January
0x00000044
- LOCALE_SABBREVMONTHNAME2 =
abbreviated name for February
0x00000045
- LOCALE_SABBREVMONTHNAME3 =
abbreviated name for March
0x00000046
- LOCALE_SABBREVMONTHNAME4 =
abbreviated name for April
0x00000047
- LOCALE_SABBREVMONTHNAME5 =
abbreviated name for May
0x00000048
- LOCALE_SABBREVMONTHNAME6 =
abbreviated name for June
0x00000049
- LOCALE_SABBREVMONTHNAME7 =
abbreviated name for July
0x0000004A
- LOCALE_SABBREVMONTHNAME8 =
abbreviated name for August
0x0000004B
- LOCALE_SABBREVMONTHNAME9 =
abbreviated name for September
0x0000004C
- LOCALE_SABBREVMONTHNAME10 =
abbreviated name for October
0x0000004D
- LOCALE_SABBREVMONTHNAME11 =
abbreviated name for November
0x0000004E
- LOCALE_SABBREVMONTHNAME12 =
abbreviated name for December
0x0000004F
- LOCALE_SABBREVMONTHNAME13 =
abbreviated name for 13th month (if exists)
0x0000100F
- LOCALE_SPOSITIVESIGN =
positive sign
0x00000050
- LOCALE_SNEGATIVESIGN =
negative sign
0x00000051
- LOCALE_IPOSSIGNPOSN =
positive sign position
0x00000052
- LOCALE_INEGSIGNPOSN =
negative sign position
0x00000053
- LOCALE_IPOSSYMPRECEDES =
mon sym precedes pos amt
0x00000054
- LOCALE_IPOSSEPBYSPACE =
mon sym sep by space from pos amt
0x00000055
- LOCALE_INEGSYMPRECEDES =
mon sym precedes neg amt
0x00000056
- LOCALE_INEGSEPBYSPACE =
mon sym sep by space from neg amt
0x00000057
- LOCALE_FONTSIGNATURE =
font signature
0x00000058
- LOCALE_SISO639LANGNAME =
ISO abbreviated language name
0x00000059
- LOCALE_SISO3166CTRYNAME =
ISO abbreviated country name
0x0000005A
- LOCALE_IDEFAULTEBCDICCODEPAGE =
default ebcdic code page
0x00001012
- LOCALE_IPAPERSIZE =
1 = letter, 5 = legal, 8 = a3, 9 = a4
0x0000100A
- LOCALE_SENGCURRNAME =
english name of currency
0x00001007
- LOCALE_SNATIVECURRNAME =
native name of currency
0x00001008
- LOCALE_SYEARMONTH =
year month format string
0x00001006
- LOCALE_SSORTNAME =
sort name
0x00001013
- LOCALE_IDIGITSUBSTITUTION =
0 = context, 1 = none, 2 = national
0x00001014
- TIME_NOMINUTESORSECONDS =
do not use minutes or seconds
0x00000001
- TIME_NOSECONDS =
do not use seconds
0x00000002
- TIME_NOTIMEMARKER =
do not use time marker
0x00000004
- TIME_FORCE24HOURFORMAT =
always use 24 hour format
0x00000008
- DATE_SHORTDATE =
use short date picture
0x00000001
- DATE_LONGDATE =
use long date picture
0x00000002
- DATE_USE_ALT_CALENDAR =
use alternate calendar (if any)
0x00000004
- DATE_YEARMONTH =
use year month picture
0x00000008
- DATE_LTRREADING =
add marks for left to right reading order layout
0x00000010
- DATE_RTLREADING =
add marks for right to left reading order layout
0x00000020
- SORT_DEFAULT =
sorting default
0x0
- SORT_JAPANESE_XJIS =
Japanese XJIS order
0x0
- SORT_JAPANESE_UNICODE =
Japanese Unicode order
0x1
- SORT_CHINESE_BIG5 =
Chinese BIG5 order
0x0
- SORT_CHINESE_PRCP =
PRC Chinese Phonetic order
0x0
- SORT_CHINESE_UNICODE =
Chinese Unicode order
0x1
- SORT_CHINESE_PRC =
PRC Chinese Stroke Count order
0x2
- SORT_CHINESE_BOPOMOFO =
Traditional Chinese Bopomofo order
0x3
- SORT_KOREAN_KSC =
Korean KSC order
0x0
- SORT_KOREAN_UNICODE =
Korean Unicode order
0x1
- SORT_GERMAN_PHONE_BOOK =
German Phone Book order
0x1
- SORT_HUNGARIAN_DEFAULT =
Hungarian Default order
0x0
- SORT_HUNGARIAN_TECHNICAL =
Hungarian Technical order
0x1
- SORT_GEORGIAN_TRADITIONAL =
Georgian Traditional order
0x0
- SORT_GEORGIAN_MODERN =
Georgian Modern order
0x1
- LANG_SYSTEM_DEFAULT =
2048
- LANG_USER_DEFAULT =
1024
- LOCALE_SYSTEM_DEFAULT =
2048
- LOCALE_USER_DEFAULT =
1024
- LOCALE_INVARIANT =
8323072
Constants included from Library
Instance Method Summary collapse
-
#get_acp_string ⇒ Object
Convenience method for converting the results of the GetACP( function to a human readable string..
-
#MAKELANGID(x, s) ⇒ Object
Equivalent of the MAKELANGID macro in WinNT.h.
-
#MAKELCID(srtid, lgid) ⇒ Object
Equivalent of the MAKELCID macro in WinNT.h.
Methods included from Library
callback, define_api, define_snake_method, enforce_count, extended, function, generate_names, generate_signature, generate_snake_method_body, try_function
Instance Method Details
#get_acp_string ⇒ Object
Convenience method for converting the results of the GetACP( function to a human readable string.
569 570 571 |
# File 'lib/win/national.rb', line 569 def get_acp_string CODE_PAGE[GetACP.call] end |
#MAKELANGID(x, s) ⇒ Object
Equivalent of the MAKELANGID macro in WinNT.h
581 582 583 |
# File 'lib/win/national.rb', line 581 def MAKELANGID x, s s << 10 | x end |
#MAKELCID(srtid, lgid) ⇒ Object
Equivalent of the MAKELCID macro in WinNT.h
575 576 577 |
# File 'lib/win/national.rb', line 575 def MAKELCID srtid, lgid srtid << 16 | lgid end |