GnuCash c935c2f+
Loading...
Searching...
No Matches
gnc-locale-utils.h
1/********************************************************************\
2 * gnc-locale-utils.h -- Locale manipulation functions *
3 * Copyright (C) 2000 Dave Peticolas <dave@krondo.com> *
4 * *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License as *
7 * published by the Free Software Foundation; either version 2 of *
8 * the License, or (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License*
16 * along with this program; if not, contact: *
17 * *
18 * Free Software Foundation Voice: +1-617-542-5942 *
19 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
20 * Boston, MA 02110-1301, USA gnu@gnu.org *
21\********************************************************************/
22#ifndef GNC_LOCALE_UTILS_H
23#define GNC_LOCALE_UTILS_H
24
25#include <glib.h>
26#include <locale.h>
27
28#ifdef __cplusplus
29extern "C"
30{
31#endif
32
33/* The gnc_localeconv() subroutine returns an lconv structure
34 * containing locale information. If no locale is set, the structure
35 * is given default (en_US) values. */
36struct lconv * gnc_localeconv (void);
37
38
39/* Returns the default ISO currency string of the current locale. */
40const char * gnc_locale_default_iso_currency_code (void);
41
42/* Returns the number of decimal place to print in the current locale */
43int gnc_locale_decimal_places (void);
44
45/* Return the name of the currently set locale.
46 * The returned string should be freed by the caller. */
47gchar *gnc_locale_name (void);
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif /* GNC_LOCALE_UTILS_H */