10d5acd74SJohn Marino /*- 20d5acd74SJohn Marino * Copyright (c) 2000, 2001 Alexey Zelkin <phantom@FreeBSD.org> 30d5acd74SJohn Marino * All rights reserved. 40d5acd74SJohn Marino * 50d5acd74SJohn Marino * Copyright (c) 2011 The FreeBSD Foundation 60d5acd74SJohn Marino * All rights reserved. 70d5acd74SJohn Marino * Portions of this software were developed by David Chisnall 80d5acd74SJohn Marino * under sponsorship from the FreeBSD Foundation. 90d5acd74SJohn Marino * 100d5acd74SJohn Marino * Redistribution and use in source and binary forms, with or without 110d5acd74SJohn Marino * modification, are permitted provided that the following conditions 120d5acd74SJohn Marino * are met: 130d5acd74SJohn Marino * 1. Redistributions of source code must retain the above copyright 140d5acd74SJohn Marino * notice, this list of conditions and the following disclaimer. 150d5acd74SJohn Marino * 2. Redistributions in binary form must reproduce the above copyright 160d5acd74SJohn Marino * notice, this list of conditions and the following disclaimer in the 170d5acd74SJohn Marino * documentation and/or other materials provided with the distribution. 180d5acd74SJohn Marino * 190d5acd74SJohn Marino * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 200d5acd74SJohn Marino * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 210d5acd74SJohn Marino * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 220d5acd74SJohn Marino * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 230d5acd74SJohn Marino * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 240d5acd74SJohn Marino * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 250d5acd74SJohn Marino * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 260d5acd74SJohn Marino * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 270d5acd74SJohn Marino * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 280d5acd74SJohn Marino * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 290d5acd74SJohn Marino * SUCH DAMAGE. 300d5acd74SJohn Marino * 310d5acd74SJohn Marino * $FreeBSD: head/lib/libc/locale/lmonetary.h 227753 2011-11-20 14:45:42Z theraven $ 320d5acd74SJohn Marino */ 330d5acd74SJohn Marino 340d5acd74SJohn Marino #ifndef _LMONETARY_H_ 350d5acd74SJohn Marino #define _LMONETARY_H_ 36*e3c51d6dSzrj 37*e3c51d6dSzrj #ifdef __LIBC 380d5acd74SJohn Marino #include "xlocale_private.h" 39*e3c51d6dSzrj #endif 400d5acd74SJohn Marino 410d5acd74SJohn Marino struct lc_monetary_T { 420d5acd74SJohn Marino const char *int_curr_symbol; 430d5acd74SJohn Marino const char *currency_symbol; 440d5acd74SJohn Marino const char *mon_decimal_point; 450d5acd74SJohn Marino const char *mon_thousands_sep; 460d5acd74SJohn Marino const char *mon_grouping; 470d5acd74SJohn Marino const char *positive_sign; 480d5acd74SJohn Marino const char *negative_sign; 490d5acd74SJohn Marino const char *int_frac_digits; 500d5acd74SJohn Marino const char *frac_digits; 510d5acd74SJohn Marino const char *p_cs_precedes; 520d5acd74SJohn Marino const char *p_sep_by_space; 530d5acd74SJohn Marino const char *n_cs_precedes; 540d5acd74SJohn Marino const char *n_sep_by_space; 550d5acd74SJohn Marino const char *p_sign_posn; 560d5acd74SJohn Marino const char *n_sign_posn; 570d5acd74SJohn Marino const char *int_p_cs_precedes; 580d5acd74SJohn Marino const char *int_n_cs_precedes; 590d5acd74SJohn Marino const char *int_p_sep_by_space; 600d5acd74SJohn Marino const char *int_n_sep_by_space; 610d5acd74SJohn Marino const char *int_p_sign_posn; 620d5acd74SJohn Marino const char *int_n_sign_posn; 630d5acd74SJohn Marino }; 64*e3c51d6dSzrj 65*e3c51d6dSzrj #ifdef __LIBC 660d5acd74SJohn Marino struct xlocale_monetary { 670d5acd74SJohn Marino struct xlocale_component header; 680d5acd74SJohn Marino char *buffer; 690d5acd74SJohn Marino struct lc_monetary_T locale; 700d5acd74SJohn Marino }; 710d5acd74SJohn Marino 720d5acd74SJohn Marino struct lc_monetary_T *__get_current_monetary_locale(locale_t loc); 730d5acd74SJohn Marino int __monetary_load_locale(const char *); 74*e3c51d6dSzrj #endif 750d5acd74SJohn Marino 760d5acd74SJohn Marino #endif /* !_LMONETARY_H_ */ 77