Datasheet
The C and C++ Libraries
4-48 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
4.6.18 __LC_INDEX_END
This macro is used to declare the end of an index.
symprefix
is provided to ensure a
unique name. The definition from
rt_locale.h
and sample code are shown in
Example 4-15.
Example 4-15 LC_INDEX_END
#define __LC_INDEX_END(symprefix) static const int symprefix##_index = 0;
4.6.19 The lconv structure
The
lconv
structure contains numeric formatting information. The structure is filled by
the functions
_get_lconv()
and
localeconv()
. The
setlocale()
function must be called
to initialize the
lconv
structure prior to using the structure in any other functions.
The definition of
lconv
from
locale.h
is shown in Example 4-16.
Example 4-16 lconv structure
struct lconv {
char *decimal_point;
/* The decimal point character used to format non-monetary quantities */
char *thousands_sep;
/* The character used to separate groups of digits to the left of the */
/* decimal point character in formatted non-monetary quantities. */
char *grouping;
/* A string whose elements indicate the size of each group of digits */
/* in formatted non-monetary quantities. See below for more details. */
char *int_curr_symbol;
/* 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. */
/* Codes for the representation of Currency and Funds. The fourth */
/* character (immediately preceding the null character) is the */
/* character used to separate the international currency symbol from */
/* the monetary quantity. */
char *currency_symbol;
/* The local currency symbol applicable to the current locale. */
char *mon_decimal_point;
/* The decimal-point used to format monetary quantities. */
char *mon_thousands_sep;
/* The separator for groups of digits to the left of the decimal-point*/
/* in formatted monetary quantities. */