Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
|
#include <nl_types.h>
Go to the source code of 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) |
#define _NL_LOCALE_NAME | ( | cat | ) | (((cat) << 16) | 0xffff) |
Definition at line 92 of file langinfo.h.
#define ABDAY_1 0x20000 |
Definition at line 27 of file langinfo.h.
#define ABDAY_2 0x20001 |
Definition at line 28 of file langinfo.h.
#define ABDAY_3 0x20002 |
Definition at line 29 of file langinfo.h.
#define ABDAY_4 0x20003 |
Definition at line 30 of file langinfo.h.
#define ABDAY_5 0x20004 |
Definition at line 31 of file langinfo.h.
#define ABDAY_6 0x20005 |
Definition at line 32 of file langinfo.h.
#define ABDAY_7 0x20006 |
Definition at line 33 of file langinfo.h.
#define ABMON_1 0x2000E |
Definition at line 43 of file langinfo.h.
#define ABMON_10 0x20017 |
Definition at line 52 of file langinfo.h.
#define ABMON_11 0x20018 |
Definition at line 53 of file langinfo.h.
#define ABMON_12 0x20019 |
Definition at line 54 of file langinfo.h.
#define ABMON_2 0x2000F |
Definition at line 44 of file langinfo.h.
#define ABMON_3 0x20010 |
Definition at line 45 of file langinfo.h.
#define ABMON_4 0x20011 |
Definition at line 46 of file langinfo.h.
#define ABMON_5 0x20012 |
Definition at line 47 of file langinfo.h.
#define ABMON_6 0x20013 |
Definition at line 48 of file langinfo.h.
#define ABMON_7 0x20014 |
Definition at line 49 of file langinfo.h.
#define ABMON_8 0x20015 |
Definition at line 50 of file langinfo.h.
#define ABMON_9 0x20016 |
Definition at line 51 of file langinfo.h.
#define ALT_DIGITS 0x2002F |
Definition at line 79 of file langinfo.h.
#define AM_STR 0x20026 |
Definition at line 69 of file langinfo.h.
#define CODESET 14 |
Definition at line 83 of file langinfo.h.
#define CRNCYSTR 0x4000F |
Definition at line 85 of file langinfo.h.
#define D_FMT 0x20029 |
Definition at line 73 of file langinfo.h.
#define D_T_FMT 0x20028 |
Definition at line 72 of file langinfo.h.
#define DAY_1 0x20007 |
Definition at line 35 of file langinfo.h.
#define DAY_2 0x20008 |
Definition at line 36 of file langinfo.h.
#define DAY_3 0x20009 |
Definition at line 37 of file langinfo.h.
#define DAY_4 0x2000A |
Definition at line 38 of file langinfo.h.
#define DAY_5 0x2000B |
Definition at line 39 of file langinfo.h.
#define DAY_6 0x2000C |
Definition at line 40 of file langinfo.h.
#define DAY_7 0x2000D |
Definition at line 41 of file langinfo.h.
#define ERA 0x2002C |
Definition at line 77 of file langinfo.h.
#define ERA_D_FMT 0x2002E |
Definition at line 78 of file langinfo.h.
#define ERA_D_T_FMT 0x20030 |
Definition at line 80 of file langinfo.h.
#define ERA_T_FMT 0x20031 |
Definition at line 81 of file langinfo.h.
#define MON_1 0x2001A |
Definition at line 56 of file langinfo.h.
#define MON_10 0x20023 |
Definition at line 65 of file langinfo.h.
#define MON_11 0x20024 |
Definition at line 66 of file langinfo.h.
#define MON_12 0x20025 |
Definition at line 67 of file langinfo.h.
#define MON_2 0x2001B |
Definition at line 57 of file langinfo.h.
#define MON_3 0x2001C |
Definition at line 58 of file langinfo.h.
#define MON_4 0x2001D |
Definition at line 59 of file langinfo.h.
#define MON_5 0x2001E |
Definition at line 60 of file langinfo.h.
#define MON_6 0x2001F |
Definition at line 61 of file langinfo.h.
#define MON_7 0x20020 |
Definition at line 62 of file langinfo.h.
#define MON_8 0x20021 |
Definition at line 63 of file langinfo.h.
#define MON_9 0x20022 |
Definition at line 64 of file langinfo.h.
#define NOEXPR 0x50001 |
Definition at line 90 of file langinfo.h.
#define PM_STR 0x20027 |
Definition at line 70 of file langinfo.h.
#define RADIXCHAR 0x10000 |
Definition at line 87 of file langinfo.h.
#define T_FMT 0x2002A |
Definition at line 74 of file langinfo.h.
#define T_FMT_AMPM 0x2002B |
Definition at line 75 of file langinfo.h.
#define THOUSEP 0x10001 |
Definition at line 88 of file langinfo.h.
#define YESEXPR 0x50000 |
Definition at line 89 of file langinfo.h.
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.
Definition at line 64 of file langinfo.c.
References assert, c_messages, c_numeric, c_time, CODESET, LC_ALL, LC_MESSAGES, LC_MONETARY, LC_NUMERIC, and LC_TIME.
Referenced by asctime_r().