scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

  1.TH locale.h 3 scc\-VERSION
  2.SH NAME
  3locale.h - localization category macros
  4.SH SYNOPSIS
  5#include <locale.h>
  6
  7The locale.h header declares the following functions:
  8
  9.nf
 10char *setlocale(int category, const char *locale);
 11struct lconv *localeconv(void);
 12.fi
 13.SH DESCRIPTION
 14The locale.h header defines the following macros:
 15
 16.nf
 17LC_ALL
 18LC_COLLATE
 19LC_CTYPE
 20LC_MESSAGES
 21LC_MONETARY
 22LC_NUMERIC
 23LC_TIME
 24.fi
 25
 26Each macro expands to a distinct integer constant expression
 27that may be passed as the
 28.I category
 29argument to
 30.BR setlocale .
 31
 32The locale.h header also declares the lconv structure with at least
 33the following members:
 34
 35.nf
 36char *currency_symbol
 37char *decimal_point
 38char frac_digits
 39char *grouping
 40char *int_curr_symbol
 41char int_frac_digits
 42char int_n_cs_precedes
 43char int_n_sep_by_space
 44char int_n_sign_posn
 45char int_p_cs_precedes
 46char int_p_sep_by_space
 47char int_p_sign_posn
 48char *mon_decimal_point
 49char *mon_grouping
 50char *mon_thousands_sep
 51char *negative_sign
 52char n_cs_precedes
 53char n_sep_by_space
 54char n_sign_posn
 55char *positive_sign
 56char p_cs_precedes
 57char p_sep_by_space
 58char p_sign_posn
 59char *thousands_sep
 60.fi
 61
 62The members of the
 63.I lconv
 64structure are:
 65.TP 10
 66currency_symbol
 67The currency symbol used in the current locale.
 68.TP
 69decimal_point
 70The decimal separator for non-monetary numeric values.
 71.TP
 72thousands_sep
 73The character that separates digit groups
 74to the left of the decimal point in non-monetary values.
 75.TP
 76grouping
 77A string encoding the sizes of digit groups in
 78formatted non-monetary quantities.
 79.TP
 80mon_decimal_point
 81The decimal separator used in monetary values.
 82.TP
 83mon_thousands_sep
 84The digit group separator for monetary quantities.
 85.TP
 86mon_grouping
 87A string encoding the sizes of digit groups in
 88formatted monetary quantities.
 89.TP
 90positive_sign
 91The string used to mark a non-negative monetary value.
 92.TP
 93negative_sign
 94The string used to mark a negative monetary value.
 95.TP
 96frac_digits
 97The number of digits after the decimal point in a locally
 98formatted monetary quantity.
 99.TP
100p_cs_precedes
101Set to 1 if currency_symbol comes before the value
102for a non-negative locally formatted monetary quantity,
103or 0 if it follows.
104.TP
105n_cs_precedes
106Set to 1 if currency_symbol comes before the value
107for a negative locally formatted monetary quantity,
108or 0 if it follows.
109.TP
110p_sep_by_space
111Encodes the spacing between currency_symbol, the sign string,
112and the value for a non-negative locally formatted monetary quantity.
113.TP
114n_sep_by_space
115Encodes the spacing between currency_symbol, the sign string,
116and the value for a negative locally formatted monetary quantity.
117.TP
118p_sign_posn
119Encodes where the positive_sign is placed for a non-negative
120locally formatted monetary quantity.
121.TP
122n_sign_posn
123Encodes where the negative_sign is placed for a negative
124locally formatted monetary quantity.
125.TP
126int_curr_symbol
127The international currency symbol for the current locale.
128.TP
129int_frac_digits
130The number of digits after the decimal point in an internationally
131formatted monetary quantity.
132.TP
133int_p_cs_precedes
134Set to 1 if int_curr_symbol comes before the value
135for a non-negative internationally formatted monetary quantity,
136or 0 if it follows.
137.TP
138int_n_cs_precedes
139Set to 1 if int_curr_symbol comes before the value
140for a negative internationally formatted monetary quantity,
141or 0 if it follows.
142.TP
143int_p_sep_by_space
144Encodes the spacing between int_curr_symbol, the sign string,
145and the value for a non-negative internationally formatted monetary quantity.
146.TP
147int_n_sep_by_space
148Encodes the spacing between int_curr_symbol, the sign string,
149and the value for a negative internationally formatted monetary quantity.
150.TP
151int_p_sign_posn
152Encodes where the positive_sign is placed for a non-negative
153internationally formatted monetary quantity.
154.TP
155int_n_sign_posn
156Encodes where the negative_sign is placed for a negative
157internationally formatted monetary quantity.
158.SH STANDARDS
159ISO/IEC 9899:1999 Section 7.11
160
161ISO/IEC 9899:1999 Section 7.11.2.1
162.SH SEE ALSO
163.BR localeconv (3)
164.BR setlocale (3)