LANGINFO(5)
NAME
langinfo − language information constants
SYNOPSIS
#include <langinfo.h>
DESCRIPTION
This header file contains the constants used to identify items of langinfo data (see nl_langinfo(3C)). The mode of items is given in <nl_types.h>. The following constants are defined (CATEGORY indicates in which setlocale(3C) category each item is defined):
| CONSTANT | CATEGORY | DESCRIPTION |
| D_T_FMT | LC_TIME | String for formatting the %c (date and time) directive of date(1) and strftime(3C). |
| D_FMT | LC_TIME | String for formatting the %x (date) directive of date(1) and strftime(3C). |
| T_FMT | LC_TIME | String for formatting the %X (time) directive of date(1) and strftime(3C). |
| DAY_1 | LC_TIME | Name of the first day of the week (“Sunday” in English). |
| : | : | : |
| DAY_7 | LC_TIME | Name of the seventh day of the week. |
| ABDAY_1 | LC_TIME | Abbreviated name of the first day of the week (“Sun” in English). |
| : | : | : |
| ABDAY_7 | LC_TIME | Abbreviated name of the seventh day of the week. |
| MON_1 | LC_TIME | Name of the first month in the Gregorian year. |
| : | : | : |
| MON_12 | LC_TIME | Name of the twelfth month. |
| ABMON_1 | LC_TIME | Abbreviated name of the first month. |
| : | : | : |
| ABMON_12 | LC_TIME | Abbreviated name of the twelfth month. |
| RADIXCHAR | LC_NUMERIC | Radix character (“decimal point” in English). The string returned is the same as the decimal_point element in the structure returned by localeconv(3C). |
| THOUSEP | LC_NUMERIC | Separator for thousands. The string returned is the same as the thousands_sep element in the structure returned by localeconv(3C). |
| YESSTR | LC_ALL | Affirmative response for yes/no questions. |
| NOSTR | LC_ALL | Negative response for yes/no questions. |
| CRNCYSTR | LC_MONETARY | Symbol for currency preceded by “-” if it precedes the number, “+” if it follows the number, and “.” if it replaces the radix. For example, “-DM” would be used for German (DM1234,56), “+ Kr” for Danish (1234,56 Kr), and “.$” for Portuguese (1234$56). See localeconv(3C) for alternative currency formatting information. |
| BYTES_CHAR | LC_CTYPE | Maximum number of bytes per character for the character set used for the specified language. For example, “1” for English and most European languages, and “2” for Japanese and several other Asian languages. |
| DIRECTION | LC_ALL | Value to indicate text direction. Values currently defined include “null”, “0” and “1”. Values of “null” or “0” indicate that characters are arranged from left-to-right within a line and lines are arranged from top-to-bottom. A value of “1” indicates that characters are arranged from right-to-left within a line and lines are arranged from top-to-bottom. |
| ALT_DIGITS | LC_NUMERIC | A string of the characters that are mapped into the ASCII equivalent string “0123456789b+-.,eE” (where b is a blank). This is also the reverse mapping for output. It is not assumed that the character code values of digits are contiguous or that they are one byte values. A null value for the string indicates that the language has no alternative digits. |
| ALT_PUNCT | LC_CTYPE | A string of the characters that are mapped into the ASCII equivalent string “b!"#$%&’()∗+,−./:;<=>?@[\]^_‘{|}~” (where b is a blank) in American usage. This is also the reverse mapping for output. It is not assumed that the character code values of punctuation characters are contiguous or that they are one byte values. If any punctuation characters do not have equivalent alternatives, ASCII codes are used in the alternative punctuation string. A null value for the string indicates that the language has no alternative punctuation characters. |
| AM_STR | LC_TIME | Ante meridiem string used with 12-hour time formats ("AM" in English) |
| PM_STR | LC_TIME | Post meridiem string used with 12-hour time formats ("PM" in English) |
| YEAR_UNIT | LC_TIME | Symbol for year. This is usually required to specify date for Asian languages. |
| MON_UNIT | LC_TIME | Symbol for month. |
| DAY_UNIT | LC_TIME | Symbol for day. |
| HOUR_UNIT | LC_TIME | Symbol for hour. This is usually required to specify time for Asian languages. |
| MIN_UNIT | LC_TIME | Symbol for minute. |
| SEC_UNIT | LC_TIME | Symbol for second. |
| ERA_FMT | LC_TIME | Default string for formatting the %E (Emperor/Era name and year) directive of date(1) and strftime(3C) if an individual era format is not specified for an era (see buildlang(ADMIN)). |
AUTHOR
Langinfo was developed by HP.
SEE ALSO
date(1), langinfo(3C), localeconv(3C), nl_langinfo(3C), setlocale(3C), strftime(3C), hpnls(5), lang(5).
Hewlett-Packard Company — HP-UX Release 7.0: Sept 1989