xref: /aosp_15_r20/bionic/libc/tzcode/localedef.h (revision 8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1)
1*8d67ca89SAndroid Build Coastguard Worker /*	$OpenBSD: localedef.h,v 1.1 2016/05/23 00:05:15 guenther Exp $	*/
2*8d67ca89SAndroid Build Coastguard Worker /*	$NetBSD: localedef.h,v 1.4 1996/04/09 20:55:31 cgd Exp $	*/
3*8d67ca89SAndroid Build Coastguard Worker 
4*8d67ca89SAndroid Build Coastguard Worker /*
5*8d67ca89SAndroid Build Coastguard Worker  * Copyright (c) 1994 Winning Strategies, Inc.
6*8d67ca89SAndroid Build Coastguard Worker  * All rights reserved.
7*8d67ca89SAndroid Build Coastguard Worker  *
8*8d67ca89SAndroid Build Coastguard Worker  * Redistribution and use in source and binary forms, with or without
9*8d67ca89SAndroid Build Coastguard Worker  * modification, are permitted provided that the following conditions
10*8d67ca89SAndroid Build Coastguard Worker  * are met:
11*8d67ca89SAndroid Build Coastguard Worker  * 1. Redistributions of source code must retain the above copyright
12*8d67ca89SAndroid Build Coastguard Worker  *    notice, this list of conditions and the following disclaimer.
13*8d67ca89SAndroid Build Coastguard Worker  * 2. Redistributions in binary form must reproduce the above copyright
14*8d67ca89SAndroid Build Coastguard Worker  *    notice, this list of conditions and the following disclaimer in the
15*8d67ca89SAndroid Build Coastguard Worker  *    documentation and/or other materials provided with the distribution.
16*8d67ca89SAndroid Build Coastguard Worker  * 3. All advertising materials mentioning features or use of this software
17*8d67ca89SAndroid Build Coastguard Worker  *    must display the following acknowledgement:
18*8d67ca89SAndroid Build Coastguard Worker  *      This product includes software developed by Winning Strategies, Inc.
19*8d67ca89SAndroid Build Coastguard Worker  * 4. The name of the author may not be used to endorse or promote products
20*8d67ca89SAndroid Build Coastguard Worker  *    derived from this software without specific prior written permission.
21*8d67ca89SAndroid Build Coastguard Worker  *
22*8d67ca89SAndroid Build Coastguard Worker  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23*8d67ca89SAndroid Build Coastguard Worker  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24*8d67ca89SAndroid Build Coastguard Worker  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25*8d67ca89SAndroid Build Coastguard Worker  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26*8d67ca89SAndroid Build Coastguard Worker  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27*8d67ca89SAndroid Build Coastguard Worker  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28*8d67ca89SAndroid Build Coastguard Worker  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29*8d67ca89SAndroid Build Coastguard Worker  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30*8d67ca89SAndroid Build Coastguard Worker  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31*8d67ca89SAndroid Build Coastguard Worker  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32*8d67ca89SAndroid Build Coastguard Worker  */
33*8d67ca89SAndroid Build Coastguard Worker 
34*8d67ca89SAndroid Build Coastguard Worker #ifndef _LOCALEDEF_H_
35*8d67ca89SAndroid Build Coastguard Worker #define _LOCALEDEF_H_
36*8d67ca89SAndroid Build Coastguard Worker 
37*8d67ca89SAndroid Build Coastguard Worker #include <sys/types.h>
38*8d67ca89SAndroid Build Coastguard Worker 
39*8d67ca89SAndroid Build Coastguard Worker typedef struct
40*8d67ca89SAndroid Build Coastguard Worker {
41*8d67ca89SAndroid Build Coastguard Worker 	char *yesexpr;
42*8d67ca89SAndroid Build Coastguard Worker 	char *noexpr;
43*8d67ca89SAndroid Build Coastguard Worker 	char *yesstr;
44*8d67ca89SAndroid Build Coastguard Worker 	char *nostr;
45*8d67ca89SAndroid Build Coastguard Worker } _MessagesLocale;
46*8d67ca89SAndroid Build Coastguard Worker 
47*8d67ca89SAndroid Build Coastguard Worker 
48*8d67ca89SAndroid Build Coastguard Worker typedef struct
49*8d67ca89SAndroid Build Coastguard Worker {
50*8d67ca89SAndroid Build Coastguard Worker 	char *int_curr_symbol;
51*8d67ca89SAndroid Build Coastguard Worker 	char *currency_symbol;
52*8d67ca89SAndroid Build Coastguard Worker 	char *mon_decimal_point;
53*8d67ca89SAndroid Build Coastguard Worker 	char *mon_thousands_sep;
54*8d67ca89SAndroid Build Coastguard Worker 	char *mon_grouping;
55*8d67ca89SAndroid Build Coastguard Worker 	char *positive_sign;
56*8d67ca89SAndroid Build Coastguard Worker 	char *negative_sign;
57*8d67ca89SAndroid Build Coastguard Worker 	char int_frac_digits;
58*8d67ca89SAndroid Build Coastguard Worker 	char frac_digits;
59*8d67ca89SAndroid Build Coastguard Worker 	char p_cs_precedes;
60*8d67ca89SAndroid Build Coastguard Worker 	char p_sep_by_space;
61*8d67ca89SAndroid Build Coastguard Worker 	char n_cs_precedes;
62*8d67ca89SAndroid Build Coastguard Worker 	char n_sep_by_space;
63*8d67ca89SAndroid Build Coastguard Worker 	char p_sign_posn;
64*8d67ca89SAndroid Build Coastguard Worker 	char n_sign_posn;
65*8d67ca89SAndroid Build Coastguard Worker 	char int_p_cs_precedes;
66*8d67ca89SAndroid Build Coastguard Worker 	char int_p_sep_by_space;
67*8d67ca89SAndroid Build Coastguard Worker 	char int_n_cs_precedes;
68*8d67ca89SAndroid Build Coastguard Worker 	char int_n_sep_by_space;
69*8d67ca89SAndroid Build Coastguard Worker 	char int_p_sign_posn;
70*8d67ca89SAndroid Build Coastguard Worker 	char int_n_sign_posn;
71*8d67ca89SAndroid Build Coastguard Worker } _MonetaryLocale;
72*8d67ca89SAndroid Build Coastguard Worker 
73*8d67ca89SAndroid Build Coastguard Worker 
74*8d67ca89SAndroid Build Coastguard Worker typedef struct
75*8d67ca89SAndroid Build Coastguard Worker {
76*8d67ca89SAndroid Build Coastguard Worker 	const char *decimal_point;
77*8d67ca89SAndroid Build Coastguard Worker 	const char *thousands_sep;
78*8d67ca89SAndroid Build Coastguard Worker 	const char *grouping;
79*8d67ca89SAndroid Build Coastguard Worker } _NumericLocale;
80*8d67ca89SAndroid Build Coastguard Worker 
81*8d67ca89SAndroid Build Coastguard Worker 
82*8d67ca89SAndroid Build Coastguard Worker typedef struct {
83*8d67ca89SAndroid Build Coastguard Worker 	const char *abday[7];
84*8d67ca89SAndroid Build Coastguard Worker 	const char *day[7];
85*8d67ca89SAndroid Build Coastguard Worker 	const char *abmon[12];
86*8d67ca89SAndroid Build Coastguard Worker 	const char *mon[12];
87*8d67ca89SAndroid Build Coastguard Worker 	const char *am_pm[2];
88*8d67ca89SAndroid Build Coastguard Worker 	const char *d_t_fmt;
89*8d67ca89SAndroid Build Coastguard Worker 	const char *d_fmt;
90*8d67ca89SAndroid Build Coastguard Worker 	const char *t_fmt;
91*8d67ca89SAndroid Build Coastguard Worker 	const char *t_fmt_ampm;
92*8d67ca89SAndroid Build Coastguard Worker } _TimeLocale;
93*8d67ca89SAndroid Build Coastguard Worker 
94*8d67ca89SAndroid Build Coastguard Worker 
95*8d67ca89SAndroid Build Coastguard Worker //__BEGIN_HIDDEN_DECLS
96*8d67ca89SAndroid Build Coastguard Worker extern const _MessagesLocale *_CurrentMessagesLocale;
97*8d67ca89SAndroid Build Coastguard Worker extern const _MessagesLocale  _DefaultMessagesLocale;
98*8d67ca89SAndroid Build Coastguard Worker extern const _MonetaryLocale *_CurrentMonetaryLocale;
99*8d67ca89SAndroid Build Coastguard Worker extern const _MonetaryLocale  _DefaultMonetaryLocale;
100*8d67ca89SAndroid Build Coastguard Worker extern const _NumericLocale *_CurrentNumericLocale;
101*8d67ca89SAndroid Build Coastguard Worker extern const _NumericLocale  _DefaultNumericLocale;
102*8d67ca89SAndroid Build Coastguard Worker extern const _TimeLocale *_CurrentTimeLocale;
103*8d67ca89SAndroid Build Coastguard Worker extern const _TimeLocale  _DefaultTimeLocale;
104*8d67ca89SAndroid Build Coastguard Worker //__END_HIDDEN_DECLS
105*8d67ca89SAndroid Build Coastguard Worker 
106*8d67ca89SAndroid Build Coastguard Worker #endif /* !_LOCALEDEF_H_ */
107