C Standard Libraries C++

lconv

Declaration

struct lconv {
    char* decimal_point;
    char* thousands_sep;
    char* grouping;
    char* int_curr_symbol;
    char* currency_symbol;
    char* mon_decimal_point;
    char* mon_thousands_sep;
    char* mon_grouping;
    char* positive_sign;
    char* negative_sign;
    char int_frac_digits;
    char frac_digits;
    char p_cs_precedes;
    char p_sep_by_space;
    char n_cs_precedes;
    char n_sep_by_space;
    char p_sign_posn;
    char n_sign_posn;
};

Description

This variable type is used to store settings for a particular locale.

The members of the type are used as follows:

  1. decimal_point: This holds the decimal-point character for nonmonetary quantities.
  2. thousands_sep: This holds the character that separates groups of digits to left of decimal point for nonmonetary quantities.
  3. grouping: This holds the size of each group of digits in nonmonetary quantities.
  4. int_curr_symbol: This holds the international currency symbol for current locale. The first three characters specify alphabetic international currency symbol as defined in the ISO 4217 Codes for the Representation of Currency and Funds standard. The fourth character (immediately preceding null character) separates international currency symbol from monetary quantity.
  5. currency_symbol: This holds the local currency symbol for current locale.
  6. mon_decimal_point: This holds the decimal-point character for monetary quantities.
  7. mon_grouping: This holds the size of each group of digits in monetary quantitie.
  8. positive_sign: This holds the string denoting sign for nonnegative monetary quantities.
  9. negative_sign: This holds the string denoting sign for negative monetary quantities.
  10. int_frac_digits: This holds the number of digits to right of decimal point in internationally formatted monetary quantities.
  11. frac_digits: This holds the number of digits to right of decimal point in formatted monetary quantities.
  12. p_cs_precedes: This value is set to 1 if the currency symbol precedes the value for the nonnegative formatted monetary quantity or it is set to 0 if the symbol follows the value.
  13. p_sep_by_space: This value is set to 1 if the currency symbol is separated from the value by a space for a nonnegative formatted monetary quantity or it is set to 0 if there is no space separation.
  14. n_cs_precedes: This value is set to 1 if the currency symbol precedes the value for a negative formatted monetary quantity or it is set to 0 if the symbol succeeds the value.
  15. n_sep_by_space: This values is set to 1 if the currency symbol is separated from the value by a space for a nonnegative formatted monetary quantity or it is set to 0 if there is no space separation.
  16. p_sign_posn: This holds the position of positive sign in nonnegative formatted monetary quantities.
  17. n_sign_posn: This holds the position of positive sign in negative formatted monetary quantities.
 

© 2007–2024 XoaX.net LLC. All rights reserved.