]>
git.proxmox.com Git - mirror_edk2.git/blob - StdLib/LibC/Locale/nl_langinfo.c
1 /* $NetBSD: nl_langinfo.c,v 1.11 2005/11/29 03:11:59 christos Exp $ */
4 * Written by J.T. Conklin <jtc@NetBSD.org>.
8 #include <sys/EfiCdefs.h>
9 #if defined(LIBC_SCCS) && !defined(lint)
10 __RCSID("$NetBSD: nl_langinfo.c,v 1.11 2005/11/29 03:11:59 christos Exp $");
11 #endif /* LIBC_SCCS and not lint */
13 #include <sys/localedef.h>
21 nl_langinfo(nl_item item
)
27 s
= _CurrentTimeLocale
->d_t_fmt
;
30 s
= _CurrentTimeLocale
->d_fmt
;
33 s
= _CurrentTimeLocale
->t_fmt
;
36 s
= _CurrentTimeLocale
->t_fmt_ampm
;
40 s
= _CurrentTimeLocale
->am_pm
[(size_t)(item
- AM_STR
)];
49 s
= _CurrentTimeLocale
->day
[(size_t)(item
- DAY_1
)];
58 s
= _CurrentTimeLocale
->abday
[(size_t)(item
- ABDAY_1
)];
72 s
= _CurrentTimeLocale
->mon
[(size_t)(item
- MON_1
)];
86 s
= _CurrentTimeLocale
->abmon
[(size_t)(item
- ABMON_1
)];
89 s
= _CurrentNumericLocale
->decimal_point
;
92 s
= _CurrentNumericLocale
->thousands_sep
;
95 s
= _CurrentMessagesLocale
->yesstr
;
98 s
= _CurrentMessagesLocale
->yesexpr
;
101 s
= _CurrentMessagesLocale
->nostr
;
104 s
= _CurrentMessagesLocale
->noexpr
;
106 case CRNCYSTR
: /* XXX */
111 s
= _CurrentRuneLocale
->rl_codeset
;
123 /* The return value should be really const, but the interface says OW */