6#include <bond/core/config.h>
7#include <bond/core/exception.h>
9#include <boost/lexical_cast.hpp>
10#include <boost/locale.hpp>
17BOND_DETAIL_HEADER_ONLY_INLINE
18std::basic_string<uint16_t> utf_to_utf(
const char* begin,
const char* end)
22 return boost::locale::conv::utf_to_utf<uint16_t>(begin, end, boost::locale::conv::stop);
24 catch (
const boost::locale::conv::conversion_error&)
26 UnicodeConversionException();
31BOND_DETAIL_HEADER_ONLY_INLINE
32bool try_lexical_convert(
const char* str, uint16_t& result)
34 return boost::conversion::try_lexical_convert(str, result);
namespace bond
Definition: apply.h:17