1*2933c534Sjoerg /* $NetBSD: localedef.h,v 1.10 2013/08/18 20:03:48 joerg Exp $ */ 26b7c2607Scgd 322441ccdSjtc /* 422441ccdSjtc * Copyright (c) 1994 Winning Strategies, Inc. 522441ccdSjtc * All rights reserved. 622441ccdSjtc * 722441ccdSjtc * Redistribution and use in source and binary forms, with or without 822441ccdSjtc * modification, are permitted provided that the following conditions 922441ccdSjtc * are met: 1022441ccdSjtc * 1. Redistributions of source code must retain the above copyright 1122441ccdSjtc * notice, this list of conditions and the following disclaimer. 1222441ccdSjtc * 2. Redistributions in binary form must reproduce the above copyright 1322441ccdSjtc * notice, this list of conditions and the following disclaimer in the 1422441ccdSjtc * documentation and/or other materials provided with the distribution. 1522441ccdSjtc * 3. All advertising materials mentioning features or use of this software 1622441ccdSjtc * must display the following acknowledgement: 1722441ccdSjtc * This product includes software developed by Winning Strategies, Inc. 1822441ccdSjtc * 4. The name of the author may not be used to endorse or promote products 1922441ccdSjtc * derived from this software without specific prior written permission. 2022441ccdSjtc * 2122441ccdSjtc * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2222441ccdSjtc * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2322441ccdSjtc * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2422441ccdSjtc * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2522441ccdSjtc * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2622441ccdSjtc * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2722441ccdSjtc * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2822441ccdSjtc * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2922441ccdSjtc * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 3022441ccdSjtc * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3122441ccdSjtc */ 3222441ccdSjtc 3322441ccdSjtc #ifndef _SYS_LOCALEDEF_H_ 3422441ccdSjtc #define _SYS_LOCALEDEF_H_ 3522441ccdSjtc 36f2edc229Sjunyoung typedef struct { 37b8097652Schristos const char *yesexpr; 38b8097652Schristos const char *noexpr; 39b8097652Schristos const char *yesstr; 40b8097652Schristos const char *nostr; 4122441ccdSjtc } _MessagesLocale; 4222441ccdSjtc 43f2edc229Sjunyoung typedef struct { 44b8097652Schristos const char *int_curr_symbol; 45b8097652Schristos const char *currency_symbol; 46b8097652Schristos const char *mon_decimal_point; 47b8097652Schristos const char *mon_thousands_sep; 48b8097652Schristos const char *mon_grouping; 49b8097652Schristos const char *positive_sign; 50b8097652Schristos const char *negative_sign; 5122441ccdSjtc char int_frac_digits; 5222441ccdSjtc char frac_digits; 5322441ccdSjtc char p_cs_precedes; 5422441ccdSjtc char p_sep_by_space; 5522441ccdSjtc char n_cs_precedes; 5622441ccdSjtc char n_sep_by_space; 5722441ccdSjtc char p_sign_posn; 5822441ccdSjtc char n_sign_posn; 5920a43da1Skleink char int_p_cs_precedes; 6020a43da1Skleink char int_n_cs_precedes; 6120a43da1Skleink char int_p_sep_by_space; 6220a43da1Skleink char int_n_sep_by_space; 6320a43da1Skleink char int_p_sign_posn; 6420a43da1Skleink char int_n_sign_posn; 6522441ccdSjtc } _MonetaryLocale; 6622441ccdSjtc 67f2edc229Sjunyoung typedef struct { 6822441ccdSjtc const char *decimal_point; 6922441ccdSjtc const char *thousands_sep; 7022441ccdSjtc const char *grouping; 7122441ccdSjtc } _NumericLocale; 7222441ccdSjtc 7322441ccdSjtc typedef struct { 7422441ccdSjtc const char *abday[7]; 7522441ccdSjtc const char *day[7]; 7622441ccdSjtc const char *abmon[12]; 7722441ccdSjtc const char *mon[12]; 7822441ccdSjtc const char *am_pm[2]; 7922441ccdSjtc const char *d_t_fmt; 8022441ccdSjtc const char *d_fmt; 8122441ccdSjtc const char *t_fmt; 8222441ccdSjtc const char *t_fmt_ampm; 8322441ccdSjtc } _TimeLocale; 8422441ccdSjtc 8522441ccdSjtc #endif /* !_SYS_LOCALEDEF_H_ */ 86