lconv Struct Reference

#include <stdapis/locale.h>

struct lconv

Detailed Description

Includes the following members,

Member Attribute Documentation

currency_symbol

char *currency_symbol

The string that shall be used as the local currency symbol.

decimal_point

char *decimal_point

The operand is a string containing the symbol that shall be used as the decimal delimiter (radix character) in numeric, non-monetary formatted quantities. This keyword cannot be omitted and cannot be set to the empty string. In contexts where standards limit the decimal_point to a single byte, the result of specifying a multi-byte operand shall be unspecified.

frac_digits

charfrac_digits

An integer representing the number of fractional digits (those to the right of the decimal delimiter) to be written in a formatted monetary quantity using currency_symbol.

grouping

char *grouping

Define the size of each group of digits in formatted non-monetary quantities. The operand is a sequence of integers separated by semicolons. Each integer specifies the number of digits in each group, with the initial integer defining the size of the group immediately preceding the decimal delimiter, and the following integers defining the preceding groups. If the last integer is not -1, then the size of the previous group (if any) shall be repeatedly used for the remainder of the digits. If the last integer is -1, then no further grouping shall be performed.

int_curr_symbol

char *int_curr_symbol

The international currency symbol. The operand shall be a four-character string, with the first three characters containing the alphabetic international currency symbol. The international currency symbol should be chosen in accordance with those specified in the ISO 4217 standard. The fourth character shall be the character used to separate the international currency symbol from the monetary quantity.

int_frac_digits

charint_frac_digits

An integer representing the number of fractional digits (those to the right of the decimal delimiter) to be written in a formatted monetary quantity using int_curr_symbol.

int_n_cs_precedes

charint_n_cs_precedes

An integer set to 1 if the int_curr_symbol precedes the value for a monetary quantity with a negative value, and set to 0 if the symbol succeeds the value.

int_n_sep_by_space

charint_n_sep_by_space

Set to a value indicating the separation of the int_curr_symbol, the sign string, and the value for a negative internationally formatted monetary quantity.

int_n_sign_posn

charint_n_sign_posn

An integer set to a value indicating the positioning of the negative_sign for a negative monetary quantity formatted with the international format.

int_p_cs_precedes

charint_p_cs_precedes

An integer set to 1 if the int_curr_symbol precedes the value for a monetary quantity with a non-negative value, and set to 0 if the symbol succeeds the value.

int_p_sep_by_space

charint_p_sep_by_space

Set to a value indicating the separation of the int_curr_symbol, the sign string, and the value for a non-negative internationally formatted monetary quantity.

int_p_sign_posn

charint_p_sign_posn

An integer set to a value indicating the positioning of the positive_sign for a positive monetary quantity formatted with the international format.

mon_decimal_point

char *mon_decimal_point

The operand is a string containing the symbol that shall be used as the decimal delimiter (radix character) in monetary formatted quantities.

mon_grouping

char *mon_grouping

Define the size of each group of digits in formatted monetary quantities. The operand is a sequence of integers separated by semicolons. Each integer specifies the number of digits in each group, with the initial integer defining the size of the group immediately preceding the decimal delimiter, and the following integers defining the preceding groups. If the last integer is not -1, then the size of the previous group (if any) shall be repeatedly used for the remainder of the digits. If the last integer is -1, then no further grouping shall be performed.

mon_thousands_sep

char *mon_thousands_sep

The operand is a string containing the symbol that shall be used as a separator for groups of digits to the left of the decimal delimiter in formatted monetary quantities.

n_cs_precedes

charn_cs_precedes

An integer set to 1 if the currency_symbol precedes the value for a monetary quantity with a negative value, and set to 0 if the symbol succeeds the value.

n_sep_by_space

charn_sep_by_space

Set to a value indicating the separation of the currency_symbol, the sign string, and the value for a negative formatted monetary quantity.

n_sign_posn

charn_sign_posn

An integer set to a value indicating the positioning of the negative_sign for a negative formatted monetary quantity.

negative_sign

char *negative_sign

A string that shall be used to indicate a negative-valued formatted monetary quantity.

p_cs_precedes

charp_cs_precedes

An integer set to 1 if the currency_symbol precedes the value for a monetary quantity with a non-negative value, and set to 0 if the symbol succeeds the value.

p_sep_by_space

charp_sep_by_space

Set to a value indicating the separation of the currency_symbol, the sign string, and the value for a non-negative formatted monetary quantity.

p_sign_posn

charp_sign_posn

An integer set to a value indicating the positioning of the positive_sign for a monetary quantity with a non-negative value.

positive_sign

char *positive_sign

A string that shall be used to indicate a non-negative-valued formatted monetary quantity.

thousands_sep

char *thousands_sep

The operand is a string containing the symbol that shall be used as a separator for groups of digits to the left of the decimal delimiter in numeric, non-monetary formatted monetary quantities. In contexts where standards limit the thousands_sep to a single byte, the result of specifying a multi-byte operand shall be unspecified.