|
GnuCash 2.4.99
|
00001 /********************************************************************\ 00002 * gnc-locale-utils.h -- Locale manipulation functions * 00003 * Copyright (C) 2000 Dave Peticolas <dave@krondo.com> * 00004 * * 00005 * This program is free software; you can redistribute it and/or * 00006 * modify it under the terms of the GNU General Public License as * 00007 * published by the Free Software Foundation; either version 2 of * 00008 * the License, or (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License* 00016 * along with this program; if not, contact: * 00017 * * 00018 * Free Software Foundation Voice: +1-617-542-5942 * 00019 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * 00020 * Boston, MA 02110-1301, USA gnu@gnu.org * 00021 \********************************************************************/ 00022 #ifndef GNC_LOCALE_UTILS_H 00023 #define GNC_LOCALE_UTILS_H 00024 00025 #include <glib.h> 00026 #include <locale.h> 00027 00028 /* The gnc_localeconv() subroutine returns an lconv structure 00029 * containing locale information. If no locale is set, the structure 00030 * is given default (en_US) values. */ 00031 struct lconv * gnc_localeconv (void); 00032 00033 00034 /* Returns the default ISO currency string of the current locale. */ 00035 const char * gnc_locale_default_iso_currency_code (void); 00036 00037 /* Returns the number of decimal place to print in the current locale */ 00038 int gnc_locale_decimal_places (void); 00039 00054 void gnc_push_locale (int category, const char *locale); 00055 00059 void gnc_pop_locale (int category); 00060 00061 00062 #endif /* GNC_LOCALE_UTILS_H */
1.7.4