📄 nls.pm
字号:
Retrieve locale setting LCTYPE from the locale specified by LCID. Use
LOCALE_NOUSEROVERRIDE | LCTYPE to always query the locale database.
Otherwise user changes to C<win.ini> through the windows control panel
take precedence when retrieving values for the system default locale.
See the documentation below for a list of valid LCTYPE values.
The return value is the contents of the requested locale setting.
=item GetStringType(LCID,TYPE,STR)
Retrieve type information from locale LCID about each character in STR.
The requested TYPE can be one of the following 3 levels:
CT_CTYPE1 ANSI C and POSIX type information
CT_CTYPE2 Text layout type information
CT_CTYPE3 Text processing type information
The return value is a list of values, each of wich is a bitwise OR of
the applicable type bits from the corresponding table below:
@ct = GetStringInfo(LOCALE_SYSTEM_DEFAULT, CT_CTYPE1, "String");
ANSI C and POSIX character type information:
C1_UPPER Uppercase
C1_LOWER Lowercase
C1_DIGIT Decimal digits
C1_SPACE Space characters
C1_PUNCT Punctuation
C1_CNTRL Control characters
C1_BLANK Blank characters
C1_XDIGIT Hexadecimal digits
C1_ALPHA Any letter
Text layout type information:
C2_LEFTTORIGHT Left to right
C2_RIGHTTOLEFT Right to left
C2_EUROPENUMBER European number, European digit
C2_EUROPESEPARATOR European numeric separator
C2_EUROPETERMINATOR European numeric terminator
C2_ARABICNUMBER Arabic number
C2_COMMONSEPARATOR Common numeric separator
C2_BLOCKSEPARATOR Block separator
C2_SEGMENTSEPARATOR Segment separator
C2_WHITESPACE White space
C2_OTHERNEUTRAL Other neutrals
C2_NOTAPPLICABLE No implicit direction (e.g. ctrl codes)
Text precessing type information:
C3_NONSPACING Nonspacing mark
C3_DIACRITIC Diacritic nonspacing mark
C3_VOWELMARK Vowel nonspacing mark
C3_SYMBOL Symbol
C3_KATAKANA Katakana character
C3_HIRAGANA Hiragana character
C3_HALFWIDTH Narrow character
C3_FULLWIDTH Wide character
C3_IDEOGRAPH Ideograph
C3_ALPHA Any letter
C3_NOTAPPLICABLE Not applicable
=item GetSystemDefaultLangID()
Returns the system default language identifier.
=item GetSystemDefaultLCID()
Returns the system default locale identifier.
=item GetUserDefaultLangID()
Returns the user default language identifier.
=item GetUserDefaultLCID()
Returns the user default locale identifier.
=item MAKELANGID(LANG,SUBLANG)
Creates a lnguage identifier from a primary language and a sublanguage.
=item PRIMARYLANGID(LANGID)
Retrieves the primary language from a language identifier.
=item SUBLANGID(LANGID)
Retrieves the sublanguage from a language identifier.
=item MAKELCID(LANGID)
Creates a locale identifies from a language identifier.
=item LANGIDFROMLCID(LCID)
Retrieves a language identifier from a locale identifier.
=back
=head2 Locale Types
=over 8
=item LOCALE_ILANGUAGE
The language identifier (in hex).
=item LOCALE_SLANGUAGE
The localized name of the language.
=item LOCALE_SENGLANGUAGE
The ISO Standard 639 English name of the language.
=item LOCALE_SABBREVLANGNAME
The three-letter abbreviated name of the language. The first two
letters are from the ISO Standard 639 language name abbreviation. The
third letter indicates the sublanguage type.
=item LOCALE_SNATIVELANGNAME
The native name of the language.
=item LOCALE_ICOUNTRY
The country code, which is based on international phone codes.
=item LOCALE_SCOUNTRY
The localized name of the country.
=item LOCALE_SENGCOUNTRY
The English name of the country.
=item LOCALE_SABBREVCTRYNAME
The ISO Standard 3166 abbreviated name of the country.
=item LOCALE_SNATIVECTRYNAME
The native name of the country.
=item LOCALE_IDEFAULTLANGUAGE
Language identifier for the principal language spoken in this
locale.
=item LOCALE_IDEFAULTCOUNTRY
Country code for the principal country in this locale.
=item LOCALE_IDEFAULTANSICODEPAGE
The ANSI code page associated with this locale. Format: 4 Unicode
decimal digits plus a Unicode null terminator.
XXX This should be translated by GetLocaleInfo. XXX
=item LOCALE_IDEFAULTCODEPAGE
The OEM code page associated with the country.
=item LOCALE_SLIST
Characters used to separate list items (often a comma).
=item LOCALE_IMEASURE
Default measurement system:
0 metric system (S.I.)
1 U.S. system
=item LOCALE_SDECIMAL
Characters used for the decimal separator (often a dot).
=item LOCALE_STHOUSAND
Characters used as the separator between groups of digits left of the decimal.
=item LOCALE_SGROUPING
Sizes for each group of digits to the left of the decimal. An explicit
size is required for each group. Sizes are separated by semicolons. If
the last value is 0, the preceding value is repeated. To group
thousands, specify 3;0.
=item LOCALE_IDIGITS
The number of fractional digits.
=item LOCALE_ILZERO
Whether to use leading zeros in decimal fields. A setting of 0
means use no leading zeros; 1 means use leading zeros.
=item LOCALE_SNATIVEDIGITS
The ten characters that are the native equivalent of the ASCII 0-9.
=item LOCALE_INEGNUMBER
Negative number mode.
0 (1.1)
1 -1.1
2 -1.1
3 1.1
4 1.1
=item LOCALE_SCURRENCY
The string used as the local monetary symbol.
=item LOCALE_SINTLSYMBOL
Three characters of the International monetary symbol specified in ISO
4217, Codes for the Representation of Currencies and Funds, followed
by the character separating this string from the amount.
=item LOCALE_SMONDECIMALSEP
Characters used for the monetary decimal separators.
=item LOCALE_SMONTHOUSANDSEP
Characters used as monetary separator between groups of digits left of
the decimal.
=item LOCALE_SMONGROUPING
Sizes for each group of monetary digits to the left of the decimal. An
explicit size is needed for each group. Sizes are separated by
semicolons. If the last value is 0, the preceding value is
repeated. To group thousands, specify 3;0.
=item LOCALE_ICURRDIGITS
Number of fractional digits for the local monetary format.
=item LOCALE_IINTLCURRDIGITS
Number of fractional digits for the international monetary format.
=item LOCALE_ICURRENCY
Positive currency mode.
0 Prefix, no separation.
1 Suffix, no separation.
2 Prefix, 1-character separation.
3 Suffix, 1-character separation.
=item LOCALE_INEGCURR
Negative currency mode.
0 ($1.1)
1 -$1.1
2 $-1.1
3 $1.1-
4 $(1.1$)
5 -1.1$
6 1.1-$
7 1.1$-
8 -1.1 $ (space before $)
9 -$ 1.1 (space after $)
10 1.1 $- (space before $)
=item LOCALE_ICALENDARTYPE
The type of calendar currently in use.
1 Gregorian (as in U.S.)
2 Gregorian (always English strings)
3 Era: Year of the Emperor (Japan)
4 Era: Year of the Republic of China
5 Tangun Era (Korea)
=item LOCALE_IOPTIONALCALENDAR
The additional calendar types available for this LCID. Can be a
null-separated list of all valid optional calendars. Value is
0 for "None available" or any of the LOCALE_ICALENDARTYPE settings.
XXX null separated list should be translated by GetLocaleInfo XXX
=item LOCALE_SDATE
Characters used for the date separator.
=item LOCALE_STIME
Characters used for the time separator.
=item LOCALE_STIMEFORMAT
Time-formatting string.
=item LOCALE_SSHORTDATE
Short Date_Time formatting strings for this locale.
=item LOCALE_SLONGDATE
Long Date_Time formatting strings for this locale.
=item LOCALE_IDATE
Short Date format-ordering specifier.
0 Month - Day - Year
1 Day - Month - Year
2 Year - Month - Day
=item LOCALE_ILDATE
Long Date format ordering specifier. Value can be any of the valid
LOCALE_IDATE settings.
=item LOCALE_ITIME
Time format specifier.
0 AM/PM 12-hour format.
1 24-hour format.
=item LOCALE_ITIMEMARKPOSN
Whether the time marker string (AM|PM) precedes or follows the time
string.
0 Suffix (9:15 AM).
1 Prefix (AM 9:15).
=item LOCALE_ICENTURY
Whether to use full 4-digit century.
0 Two digit.
1 Full century.
=item LOCALE_ITLZERO
Whether to use leading zeros in time fields.
0 No leading zeros.
1 Leading zeros for hours.
=item LOCALE_IDAYLZERO
Whether to use leading zeros in day fields. Values as for
LOCALE_ITLZERO.
=item LOCALE_IMONLZERO
Whether to use leading zeros in month fields. Values as for
LOCALE_ITLZERO.
=item LOCALE_S1159
String for the AM designator.
=item LOCALE_S2359
String for the PM designator.
=item LOCALE_IFIRSTWEEKOFYEAR
Specifies which week of the year is considered first.
0 Week containing 1/1 is the first week of the year.
1 First full week following 1/1is the first week of the year.
2 First week with at least 4 days is the first week of the year.
=item LOCALE_IFIRSTDAYOFWEEK
Specifies the day considered first in the week. Value "0" means
SDAYNAME1 and value "6" means SDAYNAME7.
=item LOCALE_SDAYNAME1 .. LOCALE_SDAYNAME7
Long name for Monday .. Sunday.
=item LOCALE_SABBREVDAYNAME1 .. LOCALE_SABBREVDAYNAME7
Abbreviated name for Monday .. Sunday.
=item LOCALE_SMONTHNAME1 .. LOCALE_SMONTHNAME12
Long name for January .. December.
=item LOCALE_SMONTHNAME13
Native name for 13th month, if it exists.
=item LOCALE_SABBREVMONTHNAME1 .. LOCALE_SABBREVMONTHNAME12
Abbreviated name for January .. December.
=item LOCALE_SABBREVMONTHNAME13
Native abbreviated name for 13th month, if it exists.
=item LOCALE_SPOSITIVESIGN
String value for the positive sign.
=item LOCALE_SNEGATIVESIGN
String value for the negative sign.
=item LOCALE_IPOSSIGNPOSN
Formatting index for positive values.
0 Parentheses surround the amount and the monetary symbol.
1 The sign string precedes the amount and the monetary symbol.
2 The sign string precedes the amount and the monetary symbol.
3 The sign string precedes the amount and the monetary symbol.
4 The sign string precedes the amount and the monetary symbol.
=item LOCALE_INEGSIGNPOSN
Formatting index for negative values. Values as for LOCALE_IPOSSIGNPOSN.
=item LOCALE_IPOSSYMPRECEDES
If the monetary symbol precedes, 1. If it succeeds a positive amount, 0.
=item LOCALE_IPOSSEPBYSPACE
If the monetary symbol is separated by a space from a positive amount,
1. Otherwise, 0.
=item LOCALE_INEGSYMPRECEDES
If the monetary symbol precedes, 1. If it succeeds a negative amount, 0.
=item LOCALE_INEGSEPBYSPACE
If the monetary symbol is separated by a space from a negative amount,
1. Otherwise, 0.
=back
=head1 AUTHORS/COPYRIGHT
This module is part of the Win32::OLE distribution.
=cut
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -