GnuCash  5.6-150-g038405b370+
gnc-locale-utils.hpp
1 /********************************************************************\
2  * gnc-locale-utils.hpp -- provide a default locale for C++ *
3  * Copyright (C) 2019 John Ralls <jralls@ceridwen.us *
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_HPP
23 #define GNC_LOCALE_UTILS_HPP
24 
25 #include <locale>
26 #include <string>
27 
38 const std::locale& gnc_get_locale();
39 
40 
41 
51 void gnc_init_boost_locale(const std::string& messages_path);
52 
53 
54 
64 const std::locale& gnc_get_boost_locale();
65 
66 #endif /* GNC_LOCALE_UTILS_HPP */