struct

Locale::LocalConventions

Inherits Struct < Value < Object

Wrapper for LibC::LConv struct

Constructors

new(lconv : LibC::LConv)
Source

Instance methods

currency_symbol

Local currency symbol.

Source
decimal_point

Numeric (non-monetary) information. Decimal point character.

Source
frac_digits

Local fractional digits.

Source
grouping

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.

Source
int_curr_symbol

First three chars are a currency symbol from ISO 4217. Fourth char is the separator. Fifth char is '\0'.

Source
int_frac_digits

Int'l fractional digits.

Source
int_n_cs_precedes

1 if int_curr_symbol precedes a negative value, 0 if succeeds.

Source
int_n_sep_by_space

1 if a space separates int_curr_symbol from a negative value.

Source
int_n_sign_posn
Source
int_p_cs_precedes

1 if int_curr_symbol precedes a positive value, 0 if succeeds.

Source
int_p_sep_by_space

1 if a space separates int_curr_symbol from a positive value.

Source
int_p_sign_posn

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.

Source
mon_decimal_point

Decimal point character.

Source
mon_grouping

Like grouping element (above).

Source
mon_thousands_sep

Thousands separator.

Source
n_cs_precedes

1 if currency_symbol precedes a negative value, 0 if succeeds.

Source
n_sep_by_space

1 if a space separates currency_symbol from a negative value.

Source
n_sign_posn
Source
negative_sign

Sign for negative values.

Source
p_cs_precedes

1 if currency_symbol precedes a positive value, 0 if succeeds.

Source
p_sep_by_space

1 if a space separates currency_symbol from a positive value.

Source
p_sign_posn

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.

Source
positive_sign

Sign for positive values.

Source
thousands_sep

Thousands separator.

Source