struct Locale::LocalConventions

Overview

Wrapper for LibC::LConv struct

Defined in:

locale.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(lconv : LibC::LConv) #

[View source]

Instance Method Detail

def currency_symbol : String #

Local currency symbol.


[View source]
def decimal_point : String #

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


[View source]
def frac_digits : UInt8 #

Local fractional digits.


[View source]
def grouping : Array(UInt8) #

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.


[View source]
def int_curr_symbol : String #

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


[View source]
def int_frac_digits : UInt8 #

Int'l fractional digits.


[View source]
def int_n_cs_precedes : UInt8 #

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


[View source]
def int_n_sep_by_space : UInt8 #

1 if a space separates int_curr_symbol from a negative value.


[View source]
def int_n_sign_posn : UInt8 #

[View source]
def int_p_cs_precedes : UInt8 #

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


[View source]
def int_p_sep_by_space : UInt8 #

1 if a space separates int_curr_symbol from a positive value.


[View source]
def int_p_sign_posn : UInt8 #

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.


[View source]
def mon_decimal_point : String #

Decimal point character.


[View source]
def mon_grouping : Array(UInt8) #

Like #grouping element (above).


[View source]
def mon_thousands_sep : String #

Thousands separator.


[View source]
def n_cs_precedes : UInt8 #

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


[View source]
def n_sep_by_space : UInt8 #

1 if a space separates currency_symbol from a negative value.


[View source]
def n_sign_posn : UInt8 #

[View source]
def negative_sign : String #

Sign for negative values.


[View source]
def p_cs_precedes : UInt8 #

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


[View source]
def p_sep_by_space : UInt8 #

1 if a space separates currency_symbol from a positive value.


[View source]
def p_sign_posn : UInt8 #

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.


[View source]
def positive_sign : String #

Sign for positive values.


[View source]
def thousands_sep : String #

Thousands separator.


[View source]