Headers langinfo.h(3HEAD)
NAME
langinfo.h, langinfo - language information constants
SYNOPSIS
#include
DESCRIPTION
The
header contains the constants used to iden- tify items of langinfo data (see nl_langinfo(3C)). The type
of the constant, nl_item, is defined as described in
The following constants are defined. The entries under Category indicate in which setlocale(3C) category each item is defined. Constant Category Meaning
. _________________________________________________________________________
CODESET LC_CTYPE codeset name
_________________________________________________________________________
D_T_FMT LC_TIME string for formatting date and time
_________________________________________________________________________
D_FMT LC_TIME date format string
_________________________________________________________________________
T_FMT LC_TIME time format string
_________________________________________________________________________
T_FMT_AMPM LC_TIME a.m. or p.m. time format string
_________________________________________________________________________
AM_STR LC_TIME ante-meridiem affix
_________________________________________________________________________
PM_STR LC_TIME post-meridiem affix
_________________________________________________________________________
DAY_1 LC_TIME name of the first day of the week (for
example, Sunday)_________________________________________________________________________
DAY_2 LC_TIME name of the second day of the week (for
example, Monday)_________________________________________________________________________
DAY_3 LC_TIME name of the third day of the week (for
example, Tuesday)_________________________________________________________________________
DAY_4 LC_TIME name of the fourth day of the week (for
example, Wednesday)_________________________________________________________________________
DAY_5 LC_TIME name of the fifth day of the week (for
example, Thursday)_________________________________________________________________________
SunOS 5.11 Last change: 30 Aug 2002 1
Headers langinfo.h(3HEAD)
DAY_6 LC_TIME name of the sixth day of the week (for
example, Friday)_________________________________________________________________________
DAY_7 LC_TIME name of the seventh day of the week
(for example, Saturday)_________________________________________________________________________
ABDAY_1 LC_TIME abbreviated name of the first day of
the week_________________________________________________________________________
ABDAY_2 LC_TIME abbreviated name of the second day of
the week_________________________________________________________________________
ABDAY_3 LC_TIME abbreviated name of the third day of
the week_________________________________________________________________________
ABDAY_4 LC_TIME abbreviated name of the fourth day of
the week_________________________________________________________________________
ABDAY_5 LC_TIME abbreviated name of the fifth day of
the week_________________________________________________________________________
ABDAY_6 LC_TIME abbreviated name of the seventh day of
the week_________________________________________________________________________
ABDAY_7 LC_TIME abbreviated name of the seventh day of
the week_________________________________________________________________________
MON_1 LC_TIME name of the first month of the year
_________________________________________________________________________
MON_2 LC_TIME name of the second month
_________________________________________________________________________
MON_3 LC_TIME name of the third month
_________________________________________________________________________
MON_4 LC_TIME name of the fourth month
_________________________________________________________________________
MON_5 LC_TIME name of the fifth month
_________________________________________________________________________
MON_6 LC_TIME name of the sixth month
_________________________________________________________________________
MON_7 LC_TIME name of the seventh month
_________________________________________________________________________
MON_8 LC_TIME name of the eighth month
_________________________________________________________________________
MON_9 LC_TIME name of the ninth month
_________________________________________________________________________
MON_10 LC_TIME name of the tenth month
_________________________________________________________________________
MON_11 LC_TIME name of the eleventh month
_________________________________________________________________________
MON_12 LC_TIME name of the twelfth month
_________________________________________________________________________
ABMON_1 LC_TIME abbreviated name of the first month
SunOS 5.11 Last change: 30 Aug 2002 2
Headers langinfo.h(3HEAD)
_________________________________________________________________________
ABMON_2 LC_TIME abbreviated name of the second month
_________________________________________________________________________
ABMON_3 LC_TIME abbreviated name of the third month
_________________________________________________________________________
ABMON_4 LC_TIME abbreviated name of the fourth month
_________________________________________________________________________
ABMON_5 LC_TIME abbreviated name of the fifth month
_________________________________________________________________________
ABMON_6 LC_TIME abbreviated name of the sixth month
_________________________________________________________________________
ABMON_7 LC_TIME abbreviated name of the seventh month
_________________________________________________________________________
ABMON_8 LC_TIME abbreviated name of the eighth month
_________________________________________________________________________
ABMON_9 LC_TIME abbreviated name of the ninth month
_________________________________________________________________________
ABMON_10 LC_TIME abbreviated name of the tenth month
_________________________________________________________________________
ABMON_11 LC_TIME abbreviated name of the eleventh month
_______________|________________|________________________________________
ABMON_12 | LC_TIME | abbreviated name of the twelfth month
_______________|________________|________________________________________
ERA | LC_TIME | era description segments
_______________|________________|________________________________________
ERA_D_FMT | LC_TIME | era date format string
_______________|________________|________________________________________
ERA_D_T_FMT | LC_TIME | era date and time format string
_______________|________________|________________________________________
ERA_T_FMT | LC_TIME | era time format string
_______________|________________|________________________________________
ALT_DIGITS | LC_TIME | alternative symbols for digits
_______________|________________|________________________________________
RADIXCHAR | LC_NUMERIC | radix character
_______________|________________|________________________________________
THOUSEP | LC_NUMERIC | separator for thousands
_______________|________________|________________________________________
YESEXPR | LC_MESSAGES | affirmative response expression
_______________|________________|________________________________________
NOEXPR | LC_MESSAGES | negative response expression
_______________|________________|________________________________________
YESSTR | LC_MESSAGES | affirmative response for yes/no queries
_______________|________________|________________________________________
NOSTR | LC_MESSAGES | negative response ro yes/no queries
_______________|________________|________________________________________
CRNCYSTR | LC_MONETARY | local currency symbol, preceded by '-'
| | if the symbol sould appear before the | | value, '+' if the symbol should appear | | after the value, or '.' if the symbol | | should replace the radix characterSunOS 5.11 Last change: 30 Aug 2002 3
Headers langinfo.h(3HEAD)
If the locale's values for p_cs_precedes and n_cs_precedes
do not match, the value of nl_langinfo(CRNCYSTR) is unspeci-
fied.The
tion:header declares the following as a func- char *nl_langinfo(nl_item);
Inclusion of
header may also make visible all symbols from
. USAGE
Wherever possible, users are advised to use functions compa-
tible with those in the ISO C standard to access items oflanginfo data. In particular, the strftime(3C) function
should be used to access date and time information definedin category LC_TIME. The localeconv(3C) function should be
used to access information corresponding to RADIXCHAR, THOUSEP, and CRNCYSTR.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| Standard | See standards(5). ||_____________________________|_____________________________|
SEE ALSO
mkmsgs(1), localeconv(3C), nl_langinfo(3C),
nl_types.h(3HEAD), setlocale(3C), strftime(3C), attri-
butes(5), standards(5)SunOS 5.11 Last change: 30 Aug 2002 4