Embedded Artistry Framework
Embedded Systems C++ Framework
Macros | Functions
langinfo.h File Reference
#include <nl_types.h>
Include dependency graph for langinfo.h:
This graph shows which files directly or indirectly include this file:

Macros

#define ABDAY_1   0x20000
 
#define ABDAY_2   0x20001
 
#define ABDAY_3   0x20002
 
#define ABDAY_4   0x20003
 
#define ABDAY_5   0x20004
 
#define ABDAY_6   0x20005
 
#define ABDAY_7   0x20006
 
#define DAY_1   0x20007
 
#define DAY_2   0x20008
 
#define DAY_3   0x20009
 
#define DAY_4   0x2000A
 
#define DAY_5   0x2000B
 
#define DAY_6   0x2000C
 
#define DAY_7   0x2000D
 
#define ABMON_1   0x2000E
 
#define ABMON_2   0x2000F
 
#define ABMON_3   0x20010
 
#define ABMON_4   0x20011
 
#define ABMON_5   0x20012
 
#define ABMON_6   0x20013
 
#define ABMON_7   0x20014
 
#define ABMON_8   0x20015
 
#define ABMON_9   0x20016
 
#define ABMON_10   0x20017
 
#define ABMON_11   0x20018
 
#define ABMON_12   0x20019
 
#define MON_1   0x2001A
 
#define MON_2   0x2001B
 
#define MON_3   0x2001C
 
#define MON_4   0x2001D
 
#define MON_5   0x2001E
 
#define MON_6   0x2001F
 
#define MON_7   0x20020
 
#define MON_8   0x20021
 
#define MON_9   0x20022
 
#define MON_10   0x20023
 
#define MON_11   0x20024
 
#define MON_12   0x20025
 
#define AM_STR   0x20026
 
#define PM_STR   0x20027
 
#define D_T_FMT   0x20028
 
#define D_FMT   0x20029
 
#define T_FMT   0x2002A
 
#define T_FMT_AMPM   0x2002B
 
#define ERA   0x2002C
 
#define ERA_D_FMT   0x2002E
 
#define ALT_DIGITS   0x2002F
 
#define ERA_D_T_FMT   0x20030
 
#define ERA_T_FMT   0x20031
 
#define CODESET   14
 
#define CRNCYSTR   0x4000F
 
#define RADIXCHAR   0x10000
 
#define THOUSEP   0x10001
 
#define YESEXPR   0x50000
 
#define NOEXPR   0x50001
 
#define _NL_LOCALE_NAME(cat)   (((cat) << 16) | 0xffff)
 

Functions

char * nl_langinfo (nl_item item)
 The nl_langinfo function can be used to access individual elements of the locale categories. More...
 

Macro Definition Documentation

◆ _NL_LOCALE_NAME

#define _NL_LOCALE_NAME (   cat)    (((cat) << 16) | 0xffff)

◆ ABDAY_1

#define ABDAY_1   0x20000

◆ ABDAY_2

#define ABDAY_2   0x20001

◆ ABDAY_3

#define ABDAY_3   0x20002

◆ ABDAY_4

#define ABDAY_4   0x20003

◆ ABDAY_5

#define ABDAY_5   0x20004

◆ ABDAY_6

#define ABDAY_6   0x20005

◆ ABDAY_7

#define ABDAY_7   0x20006

◆ ABMON_1

#define ABMON_1   0x2000E

◆ ABMON_10

#define ABMON_10   0x20017

◆ ABMON_11

#define ABMON_11   0x20018

◆ ABMON_12

#define ABMON_12   0x20019

◆ ABMON_2

#define ABMON_2   0x2000F

◆ ABMON_3

#define ABMON_3   0x20010

◆ ABMON_4

#define ABMON_4   0x20011

◆ ABMON_5

#define ABMON_5   0x20012

◆ ABMON_6

#define ABMON_6   0x20013

◆ ABMON_7

#define ABMON_7   0x20014

◆ ABMON_8

#define ABMON_8   0x20015

◆ ABMON_9

#define ABMON_9   0x20016

◆ ALT_DIGITS

#define ALT_DIGITS   0x2002F

◆ AM_STR

#define AM_STR   0x20026

◆ CODESET

#define CODESET   14

◆ CRNCYSTR

#define CRNCYSTR   0x4000F

◆ D_FMT

#define D_FMT   0x20029

◆ D_T_FMT

#define D_T_FMT   0x20028

◆ DAY_1

#define DAY_1   0x20007

◆ DAY_2

#define DAY_2   0x20008

◆ DAY_3

#define DAY_3   0x20009

◆ DAY_4

#define DAY_4   0x2000A

◆ DAY_5

#define DAY_5   0x2000B

◆ DAY_6

#define DAY_6   0x2000C

◆ DAY_7

#define DAY_7   0x2000D

◆ ERA

#define ERA   0x2002C

◆ ERA_D_FMT

#define ERA_D_FMT   0x2002E

◆ ERA_D_T_FMT

#define ERA_D_T_FMT   0x20030

◆ ERA_T_FMT

#define ERA_T_FMT   0x20031

◆ MON_1

#define MON_1   0x2001A

◆ MON_10

#define MON_10   0x20023

◆ MON_11

#define MON_11   0x20024

◆ MON_12

#define MON_12   0x20025

◆ MON_2

#define MON_2   0x2001B

◆ MON_3

#define MON_3   0x2001C

◆ MON_4

#define MON_4   0x2001D

◆ MON_5

#define MON_5   0x2001E

◆ MON_6

#define MON_6   0x2001F

◆ MON_7

#define MON_7   0x20020

◆ MON_8

#define MON_8   0x20021

◆ MON_9

#define MON_9   0x20022

◆ NOEXPR

#define NOEXPR   0x50001

◆ PM_STR

#define PM_STR   0x20027

◆ RADIXCHAR

#define RADIXCHAR   0x10000

◆ T_FMT

#define T_FMT   0x2002A

◆ T_FMT_AMPM

#define T_FMT_AMPM   0x2002B

◆ THOUSEP

#define THOUSEP   0x10001

◆ YESEXPR

#define YESEXPR   0x50000

Function Documentation

◆ nl_langinfo()

char* nl_langinfo ( nl_item  item)

The nl_langinfo function can be used to access individual elements of the locale categories.

Unlike the localeconv function, which returns all the information, nl_langinfo lets the caller select what information it requires. This is very fast and it is not a problem to call this function multiple times.

A second advantage is that in addition to the numeric and monetary formatting information, information from the LC_TIME and LC_MESSAGES categories is available.

The type item is defined in nl_types.h. The argument item is a numeric value defined in this header.

References assert, c_messages, c_numeric, c_time, CODESET, LC_ALL, LC_MESSAGES, LC_MONETARY, LC_NUMERIC, and LC_TIME.

Referenced by asctime_r().

Here is the caller graph for this function: