std.c.locale
C's <locale.h>License:
Public Domain
Standards:
ISO/IEC 9899:1999 7.11
- Structure giving information about numeric and monetary notation.
- The decimal-point character used to format nonmonetary quantities.
- The character used to separate groups of digits before the
decimal-point character in formatted nonmonetary quantities.
- A string whose elements indicate the size of each group of digits
in formatted nonmonetary quantities.
- The international currency symbol applicable to the current locale.
The first three characters contain the alphabetic international
currency symbol in accordance with those specified in ISO 4217.
The fourth character (immediately preceding the null character)
is the character used to separate the international currency symbol
from the monetary quantity.
- The local currency symbol applicable to the current locale.
- The decimal-point used to format monetary quantities.
- The separator for groups of digits before the decimal-point in
formatted monetary quantities.
- A string whose elements indicate the size of each group of digits
in formatted monetary quantities.
- The string used to indicate a nonnegative-valued formatted
monetary quantity.
- The string used to indicate a negative-valued formatted monetary
quantity.
- The number of fractional digits (those after the decimal-point) to
be displayed in an internationally formatted monetary quantity.
- The number of fractional digits (those after the decimal-point) to
be displayed in a locally formatted monetary quantity.
- 1 if currency_symbol precedes a positive value, 0 if succeeds.
- 1 if a space separates currency_symbol from a positive value.
- 1 if currency_symbol precedes a negative value, 0 if succeeds.
- 1 if a space separates currency_symbol from a negative value.
- 1 if int_curr_symbol precedes a positive value, 0 if succeeds.
- 1 iff a space separates int_curr_symbol from a positive value.
- 1 if int_curr_symbol precedes a negative value, 0 if succeeds.
- 1 iff a space separates int_curr_symbol from a negative value.
- Affects the behavior of C's character handling functions and C's multibyte
and wide character functions.
- Affects the decimal-point character for C's formatted input/output functions
and C's string conversion functions, as well as C's nonmonetary formatting
information returned by the localeconv function.
- Affects the behavior of the strftime and wcsftime functions.
- Affects the behavior of the strcoll and strxfrm functions.
- Affects the monetary formatting information returned by the localeconv
function.
- The program's entire locale.
- The setlocale function selects the appropriate portion of the program's
locale as specified by the category and locale arguments.
- The localeconv function sets the components of an object with type
lconv with values appropriate for the formatting of numeric quantities
(monetary and otherwise) according to the rules of the current locale.