]> git.saurik.com Git - apple/libc.git/blame - include/langinfo.h
Libc-1272.200.26.tar.gz
[apple/libc.git] / include / langinfo.h
CommitLineData
9385eb3d
A
1/*-
2 * Copyright (c) 2001 Alexey Zelkin <phantom@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
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.
13 *
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
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: /repoman/r/ncvs/src/include/langinfo.h,v 1.6 2002/09/18 05:54:25 mike Exp $
27 */
28
29#ifndef _LANGINFO_H_
30#define _LANGINFO_H_
31
59e0d9fe 32#include <_types.h>
6465356a 33#include <_types/_nl_item.h>
9385eb3d
A
34
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 */
42
43/* week day names */
44#define DAY_1 7
45#define DAY_2 8
46#define DAY_3 9
47#define DAY_4 10
48#define DAY_5 11
49#define DAY_6 12
50#define DAY_7 13
51
52/* abbreviated week day names */
53#define ABDAY_1 14
54#define ABDAY_2 15
55#define ABDAY_3 16
56#define ABDAY_4 17
57#define ABDAY_5 18
58#define ABDAY_6 19
59#define ABDAY_7 20
60
61/* month names */
62#define MON_1 21
63#define MON_2 22
64#define MON_3 23
65#define MON_4 24
66#define MON_5 25
67#define MON_6 26
68#define MON_7 27
69#define MON_8 28
70#define MON_9 29
71#define MON_10 30
72#define MON_11 31
73#define MON_12 32
74
75/* abbreviated month names */
76#define ABMON_1 33
77#define ABMON_2 34
78#define ABMON_3 35
79#define ABMON_4 36
80#define ABMON_5 37
81#define ABMON_6 38
82#define ABMON_7 39
83#define ABMON_8 40
84#define ABMON_9 41
85#define ABMON_10 42
86#define ABMON_11 43
87#define ABMON_12 44
88
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 */
94
95#define RADIXCHAR 50 /* radix char */
96#define THOUSEP 51 /* separator for thousands */
97
98#define YESEXPR 52 /* affirmative response expression */
99#define NOEXPR 53 /* negative response expression */
100
1f2f436a 101#if (__DARWIN_C_LEVEL > __DARWIN_C_ANSI && __DARWIN_C_LEVEL < 200112L) || __DARWIN_C_LEVEL == __DARWIN_C_FULL
9385eb3d
A
102#define YESSTR 54 /* affirmative response for yes/no queries */
103#define NOSTR 55 /* negative response for yes/no queries */
104#endif
105
106#define CRNCYSTR 56 /* currency symbol */
107
224c7076 108#if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
9385eb3d
A
109#define D_MD_ORDER 57 /* month/day order (local extension) */
110#endif
111
112__BEGIN_DECLS
113char *nl_langinfo(nl_item);
114__END_DECLS
115
3d9156a7
A
116#ifdef _USE_EXTENDED_LOCALES_
117#include <xlocale/_langinfo.h>
118#endif /* _USE_EXTENDED_LOCALES_ */
119
9385eb3d 120#endif /* !_LANGINFO_H_ */