struct Locale::LocalConventions
- Locale::LocalConventions
- Struct
- Value
- Object
Overview
Wrapper for LibC::LConv struct
Defined in:
locale.crConstructors
Instance Method Summary
-
#currency_symbol : String
Local currency symbol.
-
#decimal_point : String
Numeric (non-monetary) information.
-
#frac_digits : UInt8
Local fractional digits.
-
#grouping : Array(UInt8)
Each element is the number of digits in each group; elements with higher indices are farther left.
-
#int_curr_symbol : String
First three chars are a currency symbol from ISO 4217.
-
#int_frac_digits : UInt8
Int'l fractional digits.
-
#int_n_cs_precedes : UInt8
1 if int_curr_symbol precedes a negative value, 0 if succeeds.
-
#int_n_sep_by_space : UInt8
1 if a space separates int_curr_symbol from a negative value.
- #int_n_sign_posn : UInt8
-
#int_p_cs_precedes : UInt8
1 if int_curr_symbol precedes a positive value, 0 if succeeds.
-
#int_p_sep_by_space : UInt8
1 if a space separates int_curr_symbol from a positive value.
-
#int_p_sign_posn : UInt8
Positive and negative sign positions: 0 Parentheses surround the quantity and int_curr_symbol.
-
#mon_decimal_point : String
Decimal point character.
-
#mon_grouping : Array(UInt8)
Like
#grouping
element (above). -
#mon_thousands_sep : String
Thousands separator.
-
#n_cs_precedes : UInt8
1 if currency_symbol precedes a negative value, 0 if succeeds.
-
#n_sep_by_space : UInt8
1 if a space separates currency_symbol from a negative value.
- #n_sign_posn : UInt8
-
#negative_sign : String
Sign for negative values.
-
#p_cs_precedes : UInt8
1 if currency_symbol precedes a positive value, 0 if succeeds.
-
#p_sep_by_space : UInt8
1 if a space separates currency_symbol from a positive value.
-
#p_sign_posn : UInt8
Positive and negative sign positions: 0 Parentheses surround the quantity and currency_symbol.
-
#positive_sign : String
Sign for positive values.
-
#thousands_sep : String
Thousands separator.
Constructor Detail
Instance Method Detail
Each element is the number of digits in each group; elements with higher indices are farther left. An element with value CHAR_MAX means that no further grouping is done. An element with value 0 means that the previous element is used for all groups farther left.
First three chars are a currency symbol from ISO 4217. Fourth char is the separator. Fifth char is '\0'.
Positive and negative sign positions: 0 Parentheses surround the quantity and int_curr_symbol. 1 The sign string precedes the quantity and int_curr_symbol. 2 The sign string follows the quantity and int_curr_symbol. 3 The sign string immediately precedes the int_curr_symbol. 4 The sign string immediately follows the int_curr_symbol.
Positive and negative sign positions: 0 Parentheses surround the quantity and currency_symbol. 1 The sign string precedes the quantity and currency_symbol. 2 The sign string follows the quantity and currency_symbol. 3 The sign string immediately precedes the currency_symbol. 4 The sign string immediately follows the currency_symbol.