langinfo.h File Reference

Typedef nl_item

typedef __nl_item nl_item

Used by nl_langinfo() to identify items of langinfo data.

_NL_ITEM_DECLARED

CODESET

codeset name.

D_T_FMT

string for formatting date and time

D_FMT

date format string

T_FMT

time format string

T_FMT_AMPM

a.m. or p.m. time formatting string

AM_STR

Ante Meridian affix.

PM_STR

Post Meridian affix.

DAY_1

week day names. Name of the first day of the week (for example, Sunday).

DAY_2

week day names. Name of the second day of the week (for example, Monday).

DAY_3

week day names. Name of the third day of the week (for example, Tuesday).

DAY_4

week day names. Name of the fourth day of the week (for example, Wednesday).

DAY_5

week day names. Name of the fifth day of the week (for example, Thursday).

DAY_6

week day names. Name of the sixth day of the week (for example, Friday).

DAY_7

week day names. Name of the seventh day of the week (for example, Saturday).

ABDAY_1

Abbreviated name of the first day of the week.

ABDAY_2

Abbreviated name of the second day of the week.

ABDAY_3

Abbreviated name of the third day of the week.

ABDAY_4

Abbreviated name of the fourth day of the week.

ABDAY_5

Abbreviated name of the fifth day of the week.

ABDAY_6

Abbreviated name of the sixth day of the week.

ABDAY_7

Abbreviated name of the seventh day of the week.

MON_1

Name of the first month of the year.

MON_2

Name of the second month of the year.

MON_3

Name of the third month of the year.

MON_4

Name of the fourth month of the year.

MON_5

Name of the fifth month of the year.

MON_6

Name of the sixth month of the year.

MON_7

Name of the seventh month of the year.

MON_8

Name of the eigth month of the year.

MON_9

Name of the ninth month of the year.

MON_10

Name of the tenth month of the year.

MON_11

Name of the eleventh month of the year.

MON_12

Name of the twelfth month of the year.

ABMON_1

ABMON_2

ABMON_3

ABMON_4

ABMON_5

ABMON_6

ABMON_7

ABMON_8

ABMON_9

ABMON_10

ABMON_11

ABMON_12

ERA

era description segments.

ERA_D_FMT

era date format string.

ERA_D_T_FMT

era date and time format string.

ERA_T_FMT

era time format string.

ALT_DIGITS

alternative symbols for digits.

RADIXCHAR

radix char.

THOUSEP

separator for thousands.

YESEXPR

affirmative response expression

NOEXPR

negative response expression

CRNCYSTR

currency symbol.

nl_langinfo ( nl_item )

IMPORT_C char *nl_langinfo(nl_item)

This function shall return a pointer to a string containing information relevant to the particular language or cultural area defined in the program's locale. This function need not be reentrant. A function that is not required to be reentrant is not required to be thread-safe.

Return Value
In a locale where langinfo data is not defined, this function shall return a pointer to the corresponding string in the smart phone's locale. In all locales, this function shall return a pointer to an empty string if item contains an invalid setting. This pointer may point to static data that may be overwritten on the next call.