8 #ifndef BOOST_LOCALE_UTIL_HPP
9 #define BOOST_LOCALE_UTIL_HPP
12 #include <boost/cstdint.hpp>
13 #include <boost/locale/utf.hpp>
14 #include <boost/locale/generator.hpp>
15 #include <boost/assert.hpp>
60 std::locale
create_info(std::locale
const &in,std::string
const &name);
141 virtual uint32_t
to_unicode(
char const *&begin,
char const *end)
145 unsigned char cp = *begin;
170 *begin =
static_cast<char>(u);
virtual bool is_thread_safe() const
Definition: util.hpp:113
virtual int max_len() const
Definition: util.hpp:100
static const uint32_t incomplete
Definition: util.hpp:91
static const code_point incomplete
Special constant that defines incomplete code point.
Definition: utf.hpp:44
virtual uint32_t to_unicode(char const *&begin, char const *end)
Definition: util.hpp:141
std::locale create_info(std::locale const &in, std::string const &name)
Installs information facet to locale in based on locale name name.
std::locale create_codecvt(std::locale const &in, std::auto_ptr< base_converter > cvt, character_facet_type type)
uint32_t character_facet_type
type that specifies the character type that locales can be generated for
Definition: generator.hpp:43
static const code_point illegal
Special constant that defines illegal code point.
Definition: utf.hpp:39
std::auto_ptr< base_converter > create_utf8_converter()
This class represent a simple stateless converter from UCS-4 and to UCS-4 for each single code point...
Definition: util.hpp:77
virtual base_converter * clone() const
Definition: util.hpp:120
std::string get_system_locale(bool use_utf8_on_windows=false)
Return default system locale name in POSIX format.
static const uint32_t illegal
Definition: util.hpp:85
std::auto_ptr< base_converter > create_simple_converter(std::string const &encoding)
std::locale create_simple_codecvt(std::locale const &in, std::string const &encoding, character_facet_type type)
virtual uint32_t from_unicode(uint32_t u, char *begin, char const *end)
Definition: util.hpp:164
std::locale create_utf8_codecvt(std::locale const &in, character_facet_type type)