localedef.h revision 1.1
1121982Sjhb/* $OpenBSD: localedef.h,v 1.1 2016/05/23 00:05:15 guenther Exp $ */ 2121982Sjhb/* $NetBSD: localedef.h,v 1.4 1996/04/09 20:55:31 cgd Exp $ */ 3121982Sjhb 4121982Sjhb/* 5121982Sjhb * Copyright (c) 1994 Winning Strategies, Inc. 6121982Sjhb * All rights reserved. 7121982Sjhb * 8121982Sjhb * Redistribution and use in source and binary forms, with or without 9121982Sjhb * modification, are permitted provided that the following conditions 10121982Sjhb * are met: 11121982Sjhb * 1. Redistributions of source code must retain the above copyright 12121982Sjhb * notice, this list of conditions and the following disclaimer. 13121982Sjhb * 2. Redistributions in binary form must reproduce the above copyright 14121982Sjhb * notice, this list of conditions and the following disclaimer in the 15121982Sjhb * documentation and/or other materials provided with the distribution. 16121982Sjhb * 3. All advertising materials mentioning features or use of this software 17121982Sjhb * must display the following acknowledgement: 18121982Sjhb * This product includes software developed by Winning Strategies, Inc. 19121982Sjhb * 4. The name of the author may not be used to endorse or promote products 20121982Sjhb * derived from this software without specific prior written permission. 21121982Sjhb * 22121982Sjhb * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 23121982Sjhb * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 24121982Sjhb * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25121982Sjhb * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 26121982Sjhb * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 27121982Sjhb * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28121982Sjhb * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29121982Sjhb * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30121982Sjhb * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 31121982Sjhb * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32121982Sjhb */ 33121982Sjhb 34151979Sjhb#ifndef _LOCALEDEF_H_ 35151979Sjhb#define _LOCALEDEF_H_ 36151979Sjhb 37151979Sjhb#include <sys/types.h> 38151979Sjhb 39151979Sjhbtypedef struct 40151979Sjhb{ 41151979Sjhb char *yesexpr; 42151979Sjhb char *noexpr; 43151979Sjhb char *yesstr; 44151979Sjhb char *nostr; 45151979Sjhb} _MessagesLocale; 46164265Sjhb 47164265Sjhb 48164265Sjhbtypedef struct 49151979Sjhb{ 50164265Sjhb char *int_curr_symbol; 51164265Sjhb char *currency_symbol; 52164265Sjhb char *mon_decimal_point; 53121982Sjhb char *mon_thousands_sep; 54151979Sjhb char *mon_grouping; 55164265Sjhb char *positive_sign; 56164265Sjhb char *negative_sign; 57164265Sjhb char int_frac_digits; 58164265Sjhb char frac_digits; 59164265Sjhb char p_cs_precedes; 60151979Sjhb char p_sep_by_space; 61151979Sjhb char n_cs_precedes; 62151979Sjhb char n_sep_by_space; 63151979Sjhb char p_sign_posn; 64151979Sjhb char n_sign_posn; 65151979Sjhb char int_p_cs_precedes; 66163212Sjhb char int_p_sep_by_space; 67163212Sjhb char int_n_cs_precedes; 68151979Sjhb char int_n_sep_by_space; 69151979Sjhb char int_p_sign_posn; 70151979Sjhb char int_n_sign_posn; 71121982Sjhb} _MonetaryLocale; 72121982Sjhb 73121982Sjhb 74121982Sjhbtypedef struct 75121982Sjhb{ 76121982Sjhb const char *decimal_point; 77121982Sjhb const char *thousands_sep; 78121982Sjhb const char *grouping; 79121982Sjhb} _NumericLocale; 80121982Sjhb 81121982Sjhb 82121982Sjhbtypedef struct { 83121982Sjhb const char *abday[7]; 84121982Sjhb const char *day[7]; 85121982Sjhb const char *abmon[12]; 86133907Speter const char *mon[12]; 87121982Sjhb const char *am_pm[2]; 88121982Sjhb const char *d_t_fmt; 89121982Sjhb const char *d_fmt; 90121982Sjhb const char *t_fmt; 91163219Sjhb const char *t_fmt_ampm; 92163219Sjhb} _TimeLocale; 93129284Speter 94129284Speter 95156124Sjhb__BEGIN_HIDDEN_DECLS 96163219Sjhbextern const _MessagesLocale *_CurrentMessagesLocale; 97121982Sjhbextern const _MessagesLocale _DefaultMessagesLocale; 98121982Sjhbextern const _MonetaryLocale *_CurrentMonetaryLocale; 99133907Speterextern const _MonetaryLocale _DefaultMonetaryLocale; 100133907Speterextern const _NumericLocale *_CurrentNumericLocale; 101133907Speterextern const _NumericLocale _DefaultNumericLocale; 102133907Speterextern const _TimeLocale *_CurrentTimeLocale; 103133907Speterextern const _TimeLocale _DefaultTimeLocale; 104133907Speter__END_HIDDEN_DECLS 105121982Sjhb 106121982Sjhb#endif /* !_LOCALEDEF_H_ */ 107121982Sjhb