stlab.adobe.com Adobe Systems Incorporated

Basic 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 >
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 ( first,
last,
output 
)
Parameters:
firstI models InputIterator; required: sizeof(value_type(I)) = 1 byte; [ first, last ) must be valid utf8-encoded byte stream
lastiterator pointing to one past the end of the InputIterator range to convert
outputO 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 ( first,
last 
)
Precondition:
[ first, last ) must convert to exactly one utf16-encoded code point
Parameters:
firstI models InputIterator; [ first, last ) must be valid utf8-encoded byte stream
lastiterator 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 ( first,
last,
output 
)
Parameters:
firstI models InputIterator; [ first, last ) must be valid utf8- or utf16-encoded byte stream
lastiterator pointing to one past the end of the InputIterator range to convert
outputO 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 ( first,
last 
)
Precondition:
[ first, last ) must convert to exactly one utf32-encoded code point
Parameters:
firstI models InputIterator; [ first, last ) must be valid utf8- or utf16-encoded byte stream
lastiterator 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 ( first,
last,
output 
)
Parameters:
firstI models InputIterator; required: sizeof(value_type(I)) = 4 bytes; [ first, last ) must be valid utf32-encoded byte stream
lastiterator pointing to one past the end of the InputIterator range to convert
outputO 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:
firstI models InputIterator; required: sizeof(value_type(I)) = 2 bytes; [ first, last ) must be valid utf16-encoded byte stream
lastiterator pointing to one past the end of the InputIterator range to convert
outputO 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.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google