summaryrefslogtreecommitdiff
path: root/boost/locale/util.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/locale/util.hpp')
-rw-r--r--boost/locale/util.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/boost/locale/util.hpp b/boost/locale/util.hpp
index 4d8206b528..022a5aad50 100644
--- a/boost/locale/util.hpp
+++ b/boost/locale/util.hpp
@@ -201,6 +201,21 @@ namespace util {
BOOST_LOCALE_DECL
std::locale create_codecvt(std::locale const &in,std::auto_ptr<base_converter> cvt,character_facet_type type);
+ ///
+ /// Install utf8 codecvt to UTF-16 or UTF-32 into locale \a in and return
+ /// new locale that is based on \a in and uses new facet.
+ ///
+ BOOST_LOCALE_DECL
+ std::locale create_utf8_codecvt(std::locale const &in,character_facet_type type);
+
+ ///
+ /// This function installs codecvt that can be used for conversion between single byte
+ /// character encodings like ISO-8859-1, koi8-r, windows-1255 and Unicode code points,
+ ///
+ /// Throws boost::locale::conv::invalid_charset_error if the chacater set is not supported or isn't single byte character
+ /// set
+ BOOST_LOCALE_DECL
+ std::locale create_simple_codecvt(std::locale const &in,std::string const &encoding,character_facet_type type);
} // util
} // locale
} // boost