1 // 2 // Copyright (c) 2009-2011 Artyom Beilis (Tonkikh) 3 // 4 // Distributed under the Boost Software License, Version 1.0. (See 5 // accompanying file LICENSE_1_0.txt or copy at 6 // http://www.boost.org/LICENSE_1_0.txt) 7 // 8 #ifndef BOOST_LOCALE_IMPL_POSIX_ALL_GENERATOR_HPP 9 #define BOOST_LOCALE_IMPL_POSIX_ALL_GENERATOR_HPP 10 11 #include <boost/locale/generator.hpp> 12 #include <boost/shared_ptr.hpp> 13 #include <vector> 14 #include <locale.h> 15 16 #ifdef __APPLE__ 17 #include <xlocale.h> 18 #endif 19 20 namespace boost { 21 namespace locale { 22 namespace impl_posix { 23 24 std::locale create_convert( std::locale const &in, 25 boost::shared_ptr<locale_t> lc, 26 character_facet_type type); 27 28 std::locale create_collate( std::locale const &in, 29 boost::shared_ptr<locale_t> lc, 30 character_facet_type type); 31 32 std::locale create_formatting( std::locale const &in, 33 boost::shared_ptr<locale_t> lc, 34 character_facet_type type); 35 36 std::locale create_parsing( std::locale const &in, 37 boost::shared_ptr<locale_t> lc, 38 character_facet_type type); 39 std::locale create_codecvt( std::locale const &in, 40 std::string const &encoding, 41 character_facet_type type); 42 43 } 44 } 45 } 46 47 #endif 48 // vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 49