8 #ifndef BOOST_LOCALE_UTF8_CODECVT_HPP
9 #define BOOST_LOCALE_UTF8_CODECVT_HPP
11 #include <boost/locale/utf.hpp>
12 #include <boost/locale/generic_codecvt.hpp>
13 #include <boost/cstdint.hpp>
22 template<
typename CharType>
33 static int max_encoding_length()
42 static utf::code_point to_unicode(state_type &,
char const *&begin,
char const *end)
57 if((width=utf::utf_traits<char>::width(u)) > end - begin)
static code_point decode(Iterator &p, Iterator e)
bool is_valid_codepoint(code_point v)
the function checks if v is a valid code point
Definition: utf.hpp:49
static Iterator encode(code_point value, Iterator out)
static const code_point incomplete
Special constant that defines incomplete code point.
Definition: utf.hpp:44
Geneneric utf8 codecvt facet, it allows to convert UTF-8 strings to UTF-16 and UTF-32 using wchar_t...
Definition: utf8_codecvt.hpp:23
uint32_t code_point
The integral type that can hold a Unicode code point.
Definition: utf.hpp:34
initial_convertion_state
Definition: generic_codecvt.hpp:39
static const code_point illegal
Special constant that defines illegal code point.
Definition: utf.hpp:39
Definition: utf8_codecvt.hpp:27
Geneneric generic codecvt facet, various stateless encodings to UTF-16 and UTF-32 using wchar_t...
Definition: generic_codecvt.hpp:140