7042 Fix spelling mistakes in library sections
[unleashed.git] / usr / src / man / man3head / langinfo.h.3head
blob99cf84768e874d57f87b979eefa3833a0cb156a2
1 '\" te
2 .\" Copyright 1989 AT&T. Copyright (c) 2002, Sun Microsystems, Inc.  All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH LANGINFO.H 3HEAD "April 9, 2016"
7 .SH NAME
8 langinfo.h, langinfo \- language information constants
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <langinfo.h>
13 .fi
15 .SH DESCRIPTION
16 .LP
17 The <\fBlanginfo.h\fR> header contains the constants used to identify items of
18 \fBlanginfo\fR data (see \fBnl_langinfo\fR(3C)). The type of the constant,
19 \fBnl_item\fR, is defined as described in <\fBnl_types.h\fR>.
20 .sp
21 .LP
22 The following constants are defined. The entries under Category indicate in
23 which \fBsetlocale\fR(3C) category each item is defined.
24 .sp
26 .sp
27 .TS
28 c | c | c
29 l | l | l .
30 Constant        Category        Meaning
32 \fBCODESET\fR   \fBLC_CTYPE\fR  codeset name
34 \fBD_T_FMT\fR   \fBLC_TIME\fR   string for formatting date and time
36 \fBD_FMT\fR     \fBLC_TIME\fR   date format string
38 \fBT_FMT\fR     \fBLC_TIME\fR   time format string
40 \fBT_FMT_AMPM\fR        \fBLC_TIME\fR   a.m. or p.m. time format string
42 \fBAM_STR\fR    \fBLC_TIME\fR   ante-meridiem affix
44 \fBPM_STR\fR    \fBLC_TIME\fR   post-meridiem affix
46 \fBDAY_1\fR     \fBLC_TIME\fR   T{
47 name of the first day of the week (for example, Sunday)
50 \fBDAY_2\fR     \fBLC_TIME\fR   T{
51 name of the second day of the week (for example, Monday)
54 \fBDAY_3\fR     \fBLC_TIME\fR   T{
55 name of the third day of the week (for example, Tuesday)
58 \fBDAY_4\fR     \fBLC_TIME\fR   T{
59 name of the fourth day of the week (for example, Wednesday)
62 \fBDAY_5\fR     \fBLC_TIME\fR   T{
63 name of the fifth day of the week (for example, Thursday)
66 \fBDAY_6\fR     \fBLC_TIME\fR   T{
67 name of the sixth day of the week (for example, Friday)
70 \fBDAY_7\fR     \fBLC_TIME\fR   T{
71 name of the seventh day of the week (for example, Saturday)
74 \fBABDAY_1\fR   \fBLC_TIME\fR   T{
75 abbreviated name of the first day of the week
78 \fBABDAY_2\fR   \fBLC_TIME\fR   T{
79 abbreviated name of the second day of the week
82 \fBABDAY_3\fR   \fBLC_TIME\fR   T{
83 abbreviated name of the third day of the week
86 \fBABDAY_4\fR   \fBLC_TIME\fR   T{
87 abbreviated name of the fourth day of the week
90 \fBABDAY_5\fR   \fBLC_TIME\fR   T{
91 abbreviated name of the fifth day of the week
94 \fBABDAY_6\fR   \fBLC_TIME\fR   T{
95 abbreviated name of the seventh day of the week
98 \fBABDAY_7\fR   \fBLC_TIME\fR   T{
99 abbreviated name of the seventh day of the week
102 \fBMON_1\fR     \fBLC_TIME\fR   name of the first month of the year
104 \fBMON_2\fR     \fBLC_TIME\fR   name of the second month
106 \fBMON_3\fR     \fBLC_TIME\fR   name of the third month
108 \fBMON_4\fR     \fBLC_TIME\fR   name of the fourth month
110 \fBMON_5\fR     \fBLC_TIME\fR   name of the fifth month
112 \fBMON_6\fR     \fBLC_TIME\fR   name of the sixth month
114 \fBMON_7\fR     \fBLC_TIME\fR   name of the seventh month
116 \fBMON_8\fR     \fBLC_TIME\fR   name of the eighth month
118 \fBMON_9\fR     \fBLC_TIME\fR   name of the ninth month
120 \fBMON_10\fR    \fBLC_TIME\fR   name of the tenth month
122 \fBMON_11\fR    \fBLC_TIME\fR   name of the eleventh month
124 \fBMON_12\fR    \fBLC_TIME\fR   name of the twelfth month
126 \fBABMON_1\fR   \fBLC_TIME\fR   abbreviated name of the first month
128 \fBABMON_2\fR   \fBLC_TIME\fR   abbreviated name of the second month
130 \fBABMON_3\fR   \fBLC_TIME\fR   abbreviated name of the third month
132 \fBABMON_4\fR   \fBLC_TIME\fR   abbreviated name of the fourth month
134 \fBABMON_5\fR   \fBLC_TIME\fR   abbreviated name of the fifth month
136 \fBABMON_6\fR   \fBLC_TIME\fR   abbreviated name of the sixth month
138 \fBABMON_7\fR   \fBLC_TIME\fR   abbreviated name of the seventh month
140 \fBABMON_8\fR   \fBLC_TIME\fR   abbreviated name of the eighth month
142 \fBABMON_9\fR   \fBLC_TIME\fR   abbreviated name of the ninth month
144 \fBABMON_10\fR  \fBLC_TIME\fR   abbreviated name of the tenth month
146 \fBABMON_11\fR  \fBLC_TIME\fR   abbreviated name of the eleventh month
148 \fBABMON_12\fR  \fB LC_TIME\fR  abbreviated name of the twelfth month
150 \fBERA\fR       \fBLC_TIME\fR   era description segments
152 \fBERA_D_FMT\fR \fBLC_TIME\fR   era date format string
154 \fBERA_D_T_FMT\fR       \fBLC_TIME\fR   era date and time format string
156 \fBERA_T_FMT\fR \fBLC_TIME\fR   era time format string
158 \fBALT_DIGITS\fR        \fBLC_TIME\fR   alternative symbols for digits
160 \fBRADIXCHAR\fR \fBLC_NUMERIC\fR        radix character
162 \fBTHOUSEP\fR   \fBLC_NUMERIC\fR        separator for thousands
164 \fBYESEXPR\fR   \fBLC_MESSAGES\fR       affirmative response expression
166 \fBNOEXPR\fR    \fBLC_MESSAGES\fR       negative response expression
168 \fBYESSTR\fR    \fBLC_MESSAGES\fR       affirmative response for yes/no queries
170 \fBNOSTR\fR     \fBLC_MESSAGES\fR       negative response ro yes/no queries
172 \fBCRNCYSTR\fR  \fBLC_MONETARY\fR       T{
173 local currency symbol, preceded by '-' if the symbol should appear before the
174 value, '+' if the symbol should appear after the value, or '.' if the symbol
175 should replace the radix character
181 If the locale's values for \fBp_cs_precedes\fR and \fBn_cs_precedes\fR do not
182 match, the value of \fBnl_langinfo(CRNCYSTR)\fR is unspecified.
185 The <\fBlanginfo.h\fR> header declares the following as a function:
187 .in +2
189 char *nl_langinfo(nl_item);
191 .in -2
195 Inclusion of <\fBlanginfo.h\fR> header may also make visible all symbols from
196 <\fBnl_types.h\fR>.
197 .SH USAGE
199 Wherever possible, users are advised to use functions compatible with those in
200 the ISO C standard to access items of \fBlanginfo\fR data. In particular, the
201 \fBstrftime\fR(3C) function should be used to access date and time information
202 defined in category \fBLC_TIME\fR. The \fBlocaleconv\fR(3C) function should be
203 used to access information corresponding to \fBRADIXCHAR\fR, \fBTHOUSEP\fR, and
204 \fBCRNCYSTR\fR.
205 .SH ATTRIBUTES
207 See \fBattributes\fR(5) for descriptions of the following attributes:
212 box;
213 c | c
214 l | l .
215 ATTRIBUTE TYPE  ATTRIBUTE VALUE
217 Interface Stability     Standard
220 .SH SEE ALSO
222 \fBmkmsgs\fR(1), \fBlocaleconv\fR(3C), \fBnl_langinfo\fR(3C),
223 \fBnl_types.h\fR(3HEAD), \fBsetlocale\fR(3C), \fBstrftime\fR(3C),
224 \fBattributes\fR(5), \fBstandards\fR(5)