Unicode Utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Functions | |
| template<typename I , typename O > | |
| boost::enable_if < is_utf8_iterator_type< I > , O >::type | to_utf16 (I first, I last, O output) |
| template<typename I > | |
| boost::enable_if < is_utf8_iterator_type< I > , boost::uint16_t >::type | to_utf16 (I first, I last) |
| template<typename I , typename O > | |
| O | to_utf32 (I first, I last, O output) |
| template<typename I > | |
| boost::uint32_t | to_utf32 (I first, I last) |
| template<typename I , typename O > | |
| boost::enable_if < is_utf16_iterator_type< I > , O >::type | to_utf8 (I first, I last, O output) |
Function Documentation
| boost::enable_if< is_utf16_iterator_type< I >, O >::type to_utf16 | ( | I | first, |
| I | last, | ||
| O | output | ||
| ) |
- Parameters:
-
first I models InputIterator; required: sizeof(value_type(I)) = 1 byte; [ first, last )must be valid utf8-encoded byte streamlast iterator pointing to one past the end of the InputIterator range to convert output O models OutputIterator; required: sizeof(value_type(O)) = 2 bytes; destination of utf16-encoded conversion
- Returns:
- An output iterator pointing to the end of the inserted utf16-encoded text
Definition at line 491 of file unicode.hpp.
| typename boost::enable_if< is_utf8_iterator_type< I >, boost::uint16_t >::type to_utf16 | ( | I | first, |
| I | last | ||
| ) |
- Precondition:
[ first, last )must convert to exactly one utf16-encoded code point
- Parameters:
-
first I models InputIterator; [ first, last )must be valid utf8-encoded byte streamlast iterator pointing to one past the end of the InputIterator range to convert
- Returns:
- The byte stream converted to a single utf16-encoded code point
Definition at line 526 of file unicode.hpp.
| O to_utf32 | ( | I | first, |
| I | last, | ||
| O | output | ||
| ) |
- Parameters:
-
first I models InputIterator; [ first, last )must be valid utf8- or utf16-encoded byte streamlast iterator pointing to one past the end of the InputIterator range to convert output O models OutputIterator; The result of the conversion of the first utf8- or utf16-encoded character sequence into a utf32-encoded code point
- Returns:
- An output iterator pointing to the end of the inserted utf32-encoded text
Definition at line 548 of file unicode.hpp.
| boost::uint32_t to_utf32 | ( | I | first, |
| I | last | ||
| ) |
- Precondition:
[ first, last )must convert to exactly one utf32-encoded code point
- Parameters:
-
first I models InputIterator; [ first, last )must be valid utf8- or utf16-encoded byte streamlast iterator pointing to one past the end of the InputIterator range to convert
- Returns:
- The byte stream converted to a single utf32-encoded code point
Definition at line 570 of file unicode.hpp.
| boost::enable_if< is_utf8_iterator_type< I >, O >::type to_utf8 | ( | I | first, |
| I | last, | ||
| O | output | ||
| ) |
- Parameters:
-
first I models InputIterator; required: sizeof(value_type(I)) = 4 bytes; [ first, last )must be valid utf32-encoded byte streamlast iterator pointing to one past the end of the InputIterator range to convert output O models OutputIterator; required: sizeof(value_type(O)) = 1 byte; destination of utf8-encoded conversion
- Returns:
- An output iterator pointing to the end of the inserted utf8-encoded text
- Parameters:
-
first I models InputIterator; required: sizeof(value_type(I)) = 2 bytes; [ first, last )must be valid utf16-encoded byte streamlast iterator pointing to one past the end of the InputIterator range to convert output O models OutputIterator; required: sizeof(value_type(O)) = 1 byte; destination of utf8-encoded conversion
- Returns:
- An output iterator pointing to the end of the inserted utf8-encoded text
Definition at line 404 of file unicode.hpp.

