]>
git.saurik.com Git - apple/libc.git/blob - include/langinfo.h
2 * Copyright (c) 2001 Alexey Zelkin <phantom@FreeBSD.org>
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * $FreeBSD: /repoman/r/ncvs/src/include/langinfo.h,v 1.6 2002/09/18 05:54:25 mike Exp $
33 #include <_types/_nl_item.h>
35 #define CODESET 0 /* codeset name */
36 #define D_T_FMT 1 /* string for formatting date and time */
37 #define D_FMT 2 /* date format string */
38 #define T_FMT 3 /* time format string */
39 #define T_FMT_AMPM 4 /* a.m. or p.m. time formatting string */
40 #define AM_STR 5 /* Ante Meridian affix */
41 #define PM_STR 6 /* Post Meridian affix */
52 /* abbreviated week day names */
75 /* abbreviated month names */
89 #define ERA 45 /* era description segments */
90 #define ERA_D_FMT 46 /* era date format string */
91 #define ERA_D_T_FMT 47 /* era date and time format string */
92 #define ERA_T_FMT 48 /* era time format string */
93 #define ALT_DIGITS 49 /* alternative symbols for digits */
95 #define RADIXCHAR 50 /* radix char */
96 #define THOUSEP 51 /* separator for thousands */
98 #define YESEXPR 52 /* affirmative response expression */
99 #define NOEXPR 53 /* negative response expression */
101 #if (__DARWIN_C_LEVEL > __DARWIN_C_ANSI && __DARWIN_C_LEVEL < 200112L) || __DARWIN_C_LEVEL == __DARWIN_C_FULL
102 #define YESSTR 54 /* affirmative response for yes/no queries */
103 #define NOSTR 55 /* negative response for yes/no queries */
106 #define CRNCYSTR 56 /* currency symbol */
108 #if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
109 #define D_MD_ORDER 57 /* month/day order (local extension) */
113 char *nl_langinfo(nl_item
);
116 #ifdef _USE_EXTENDED_LOCALES_
117 #include <xlocale/_langinfo.h>
118 #endif /* _USE_EXTENDED_LOCALES_ */
120 #endif /* !_LANGINFO_H_ */