locale - Description of geographical definition file

description

Region definition file containing localedef (1) all the information needed to order.

Definition file composed of a few bars, a section of a visible region described in detail.

grammar

Geographical definition file that contains the following keywords beginning of the file header:

<escape_char>
Thereafter with special character is explained in the rest of the file is the escape character, the default escape character is a backslash ( \\ ).
<comment_char>
Behind the character with the rest of the file to be interpreted as a special comment symbol, the Notes defaults to the number sign ( # ).

 

Geographical definitions divided into several sections, each of which corresponds to a geographical category, each part can copy the contents of other geographical areas, you can own re-define the scope of a new, if you want to copy a category other areas, then the only valid definition of keywords is copy , followed by the name you want to copy geographical areas.

 

LC_CTYPE

LC_CTYPE scope of the definition of the first column LC_CTYPE beginning of the string.

You can have the following keywords:

 

upper
Capital letter followed by a list of letters A to Z involves automatically be illustrated as cntrl, digit, punct, or space character is not allowed to include.

 

lower
. Follows a list of lowercase letters a to z comprises also allowed automatic following characters:. CNTRL, digit for, punct, or Space.

 

alpha
. Followed by a list of all the letters are described as upper or lower characters are automatically included, but still does not allow the following characters:. Cntrl, digit, punct, or space

 

digit
Followed by characters are divided into a number. Only numbers 0 to 9 and which are also included by default a.

 

space
Follow character spaces is defined as a. Those illustrated as upper, lower, alpha, digit, graph, or xdigit characters are not allowed while the character <space>, <form-feed >, <newline>, < carriage-return>, <tab> , and <vertical-tab> were included automatically.

 

cntrl
Followed by a list of control characters. Those are described as upper, lower, alpha, digit, punct, graph, print or xdigit characters are not allowed include.

 

point
Followed by a list of punctuation not allowed include those that are described as upper, lower, alpha, digit, cntrl, xdigit or <space> character.

 

graph
Followed by a list of printable characters, but not including spaces <Space> . Is illustrated as upper, lower, alpha, digit, xdigit or punct characters automatically includes, but is illustrated as cntrl character is not allowed to include.

 

print
Followed by a list of printable characters, including the space character <space> . It is defined as the upper, lower, alpha, digit, xdigit, punct or <space> character involves automatically be illustrated as cntrl character is not allowed.

 

xdigit
. Follow list is classified as a hexadecimal character decimal number it must be included, and a subsequent ascending order of six or more character sets, including the following default character: 0 to . 9, A to F, A to F.

 

blank
Is classified as follows a blank list of characters. The characters have automatically includes <space> and <tab>.

 

toupper
. Follows a small letters to capital letters of each mapping is a mapping list lowercase - uppercase letter pair, to intermediate , separated and enclosed in parentheses are each separated by a semicolon mapping.

 

tolower
Followed by a list of mappings from uppercase letters to lowercase letters. If the keyword tolower does not appear, on the use of its inverse toupper.

 

LC_CTYPE defined string END LC_CYTPE end.

 

LC_COLLATE

LC_COLLATE category defines the rules proofreading characters. Due to limitations of libc, and did not realize all the POSIX options.

The first column defines the string LC_COLLATE marked Start.

Allow the following keywords:

 

collating-element

 

collating-symbol

 

order-definition starts with the following lines:

order_start

Followed by a list of keywords as follows: Forward, Backward , or position. Order is defined by a row number order described composition, and terminates the following keywords,

order_end.

 

For more details please refer to the / usr / lib / nls / src source code, please note a few examples:. The POSIX, Example and Example2.

 

LC_COLLATE definition string the END LC_COLLATE end.

 

LC_MONETARY

The first column defines the string LC_MONETARY start.

You can have the following keywords:

 

int_curr_symbol
Followed by international currency symbol must be a four character string that contains international currency symbol (three characters) ISO 4217 standards and defined by a delimiter.

 

currency_symbol
Followed by the local currency symbol.

 

mon_decimal_point
Followed by a string when the amount of money used in decimal format delimiter.

 

mon_thousands_sep
Followed by a string format when the amount of money used to group delimiter.

 

mon_grouping
Followed by a string that describes the format currency amount.

 

positive_sign
Followed by a string that is used for a positive number indicating the amount of money.

 

negative_sign
Followed by a string that is used for the negative numbers indicating amounts of money.

 

int_frac_digits
Digits followed by the decimal part of the amount of money, with the number int_curr_symbol when formatting amounts of money to use.

 

frac_digits
Digits followed by the decimal part of the amount of money, with the number currency_symbol when formatting the amount of money to use.

 

p_cs_precedes
Followed by an integer, if currency_symbol or int_curr_symbol to be placed in front of the currency amount formatted, it is the integer 1 , otherwise 0 .

 

p_sep_by_space
Followed by an integer,
0
That it will not print space between the currency symbol and the amount,
1
Show print a space between the currency symbol and the amount,
2
Means that if a positive sign currency symbol and the amount of adjacent words, during a print space,

 

n_cs_precedes
0
- minus sign followed in the amount,
1
- a negative sign ahead of the amount,

 

n_sep_by_space
An integer to 0 requires currency_symbol or int_curr_symbol no spaces between the set and a negative amount of money . 1 requires a separation between the two spaces, and is set to 2 requires currency symbol and negative there is a space between the separated if the two adjacent words,

 

p_sign_posn
0
Meant to use parentheses currency_symbol or int_curr_symbol. And the amount of money,
1
Positive sign ahead of the money to the amount and currency symbol currency_symbol or int_curr_symbol.
2
With a positive sign in the amount of currency and the currency symbol currency_symbol or int_curr_symbol behind.
3
Positive sign ahead of the currency symbol currency_symbol or int_curr_symbol.
4
In a positive sign with the currency symbol currency_symbol or int_curr_symbol behind.

 

n_sign_posn
0
Meant to use parentheses currency_symbol or int_curr_symbol. And the amount of money,
1
Minus sign ahead of the monetary amount and currency symbol currency_symbol or int_curr_symbol.
2
With negative sign in the quantity of money and the currency symbol currency_symbol or int_curr_symbol behind.
3
Minus sign ahead of the currency symbol currency_symbol or int_curr_symbol.
4
With currency symbol minus currency_symbol or int_curr_symbol behind.

 

LC_MONETARY defined string END LC_MONETARY. Ended,

 

LC_NUMERIC

The first column is defined as a string LC_NUMERIC start.

You may have the following keywords:

 

decimal_point
Followed by a string, the string is formatted as a decimal number value when the delimiter,
thousands_sep
Followed by a string, the string is formatted as a group when the number of Separator,
grouping
Followed by a string, the string format described number of values,

 

LC_NUMERIC defined string END LC_NUMERIC. Ended,

 

LC_TIME

The first column is defined as a string LC_TIME start,

You can have the following keywords:

 

abday
Followed by a list of names abbreviated week, the list beginning with Sunday or its translation,
day
Followed by a list of weekday name, the list beginning with Sunday,
abmon
Followed by a list of abbreviated month name,
mon
Followed by a list of names a month,
am_pm
For am and pm properly represented,
d_t_fmt
The appropriate day and time format,
d_fmt
The appropriate date format,
t_fmt
Appropriate time format,
t_fmt_ampm
Appropriate time format (12 hour format),

 

LC_TIME defined string END LC_TIME. Ended,

 

LC_MESSAGES

The first column is defined as a string LC_MESSAGES start,

You can have the following keywords:

 

yesexpr
Followed by a regular expression that describes possible yes-responses.

 

noexpr
Followed by a regular expression that describes possible no-responses.

 

LC_MESSAGES defined string the END LC_MESSAGES end.

For more details, please refer to the POSIX.2 standard.

file

/ usr / lib / locale /        - geographical scope of the current settings database
/ usr / lib / NLS / charmap / *   - character mapping file

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11089191.html