1fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes/*
2fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * Copyright (C) 2016 The Android Open Source Project
3fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * All rights reserved.
4fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes *
5fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * Redistribution and use in source and binary forms, with or without
6fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * modification, are permitted provided that the following conditions
7fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * are met:
8fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes *  * Redistributions of source code must retain the above copyright
9fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes *    notice, this list of conditions and the following disclaimer.
10fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes *  * Redistributions in binary form must reproduce the above copyright
11fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes *    notice, this list of conditions and the following disclaimer in
12fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes *    the documentation and/or other materials provided with the
13fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes *    distribution.
14fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes *
15fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
18fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
19fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
22fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes * SUCH DAMAGE.
27fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes */
28fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes
29fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#ifndef _LANGINFO_H_
30fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define _LANGINFO_H_
31fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes
32fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#include <sys/cdefs.h>
33fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes
34fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#include <nl_types.h>
35fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#include <xlocale.h>
36fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes
37fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes__BEGIN_DECLS
38fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes
39fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define CODESET 1
40fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define D_T_FMT 2
41fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define D_FMT 3
42fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define T_FMT 4
43fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define T_FMT_AMPM 5
44fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define AM_STR 6
45fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define PM_STR 7
46fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define DAY_1 8
47fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define DAY_2 9
48fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define DAY_3 10
49fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define DAY_4 11
50fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define DAY_5 12
51fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define DAY_6 13
52fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define DAY_7 14
53fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABDAY_1 15
54fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABDAY_2 16
55fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABDAY_3 17
56fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABDAY_4 18
57fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABDAY_5 19
58fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABDAY_6 20
59fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABDAY_7 21
60fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define MON_1 22
61fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define MON_2 23
62fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define MON_3 24
63fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define MON_4 25
64fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define MON_5 26
65fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define MON_6 27
66fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define MON_7 28
67fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define MON_8 29
68fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define MON_9 30
69fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define MON_10 31
70fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define MON_11 32
71fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define MON_12 33
72fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABMON_1 34
73fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABMON_2 35
74fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABMON_3 36
75fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABMON_4 37
76fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABMON_5 38
77fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABMON_6 39
78fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABMON_7 40
79fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABMON_8 41
80fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABMON_9 42
81fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABMON_10 43
82fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABMON_11 44
83fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ABMON_12 45
84fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ERA 46
85fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ERA_D_FMT 47
86fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ERA_D_T_FMT 48
87fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ERA_T_FMT 49
88fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define ALT_DIGITS 50
89fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define RADIXCHAR 51
90fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define THOUSEP 52
91fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define YESEXPR 53
92fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define NOEXPR 54
93fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#define CRNCYSTR 55
94fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes
95ff26a16c1de7be696719e9001f0707b7c55b52cfElliott Hugheschar* nl_langinfo(nl_item __item) __INTRODUCED_IN(26);
96ff26a16c1de7be696719e9001f0707b7c55b52cfElliott Hugheschar* nl_langinfo_l(nl_item __item, locale_t __l) __INTRODUCED_IN(26);
97fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes
98fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes__END_DECLS
99fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes
100fc8e688c322a28803b62eb5bff3c842a440bb2b5Elliott Hughes#endif
101