188309Sphantom/*-
287658Sphantom * Copyright (c) 2000, 2001 Alexey Zelkin <phantom@FreeBSD.org>
372165Sphantom * All rights reserved.
472165Sphantom *
5227753Stheraven * Copyright (c) 2011 The FreeBSD Foundation
6227753Stheraven * All rights reserved.
7227753Stheraven * Portions of this software were developed by David Chisnall
8227753Stheraven * under sponsorship from the FreeBSD Foundation.
9227753Stheraven *
1072165Sphantom * Redistribution and use in source and binary forms, with or without
1172165Sphantom * modification, are permitted provided that the following conditions
1272165Sphantom * are met:
1372165Sphantom * 1. Redistributions of source code must retain the above copyright
1472165Sphantom *    notice, this list of conditions and the following disclaimer.
1572165Sphantom * 2. Redistributions in binary form must reproduce the above copyright
1672165Sphantom *    notice, this list of conditions and the following disclaimer in the
1772165Sphantom *    documentation and/or other materials provided with the distribution.
1872165Sphantom *
1972165Sphantom * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
2072165Sphantom * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2172165Sphantom * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2272165Sphantom * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2372165Sphantom * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2472165Sphantom * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2572165Sphantom * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2672165Sphantom * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2772165Sphantom * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2872165Sphantom * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2972165Sphantom * SUCH DAMAGE.
3072165Sphantom *
3172165Sphantom * $FreeBSD: releng/10.3/lib/libc/locale/lmonetary.h 227753 2011-11-20 14:45:42Z theraven $
3272165Sphantom */
3372165Sphantom
3488309Sphantom#ifndef _LMONETARY_H_
3588309Sphantom#define	_LMONETARY_H_
36227753Stheraven#include "xlocale_private.h"
3772165Sphantom
3872165Sphantomstruct lc_monetary_T {
3988309Sphantom	const char	*int_curr_symbol;
4088309Sphantom	const char	*currency_symbol;
4188309Sphantom	const char	*mon_decimal_point;
4288309Sphantom	const char	*mon_thousands_sep;
4388309Sphantom	const char	*mon_grouping;
4488309Sphantom	const char	*positive_sign;
4588309Sphantom	const char	*negative_sign;
4688309Sphantom	const char	*int_frac_digits;
4788309Sphantom	const char	*frac_digits;
4888309Sphantom	const char	*p_cs_precedes;
4988309Sphantom	const char	*p_sep_by_space;
5088309Sphantom	const char	*n_cs_precedes;
5188309Sphantom	const char	*n_sep_by_space;
5288309Sphantom	const char	*p_sign_posn;
5388309Sphantom	const char	*n_sign_posn;
54104711Stjr	const char	*int_p_cs_precedes;
55104711Stjr	const char	*int_n_cs_precedes;
56104711Stjr	const char	*int_p_sep_by_space;
57104711Stjr	const char	*int_n_sep_by_space;
58104711Stjr	const char	*int_p_sign_posn;
59104711Stjr	const char	*int_n_sign_posn;
6072165Sphantom};
61227753Stheravenstruct xlocale_monetary {
62227753Stheraven	struct xlocale_component header;
63227753Stheraven	char *buffer;
64227753Stheraven	struct lc_monetary_T locale;
65227753Stheraven};
6672165Sphantom
67227753Stheravenstruct lc_monetary_T *__get_current_monetary_locale(locale_t loc);
6888309Sphantomint	__monetary_load_locale(const char *);
6972165Sphantom
7088309Sphantom#endif /* !_LMONETARY_H_ */
71