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