Module: Advanced Tools Package: Streams
Does not inherit
#include <rw/stream/RWFromUTF8Converter.h>
RWFromUTF8Converter converts char, RWCString or std::string UTF-8 values to UTF-16. The character or string to be converted must be encoded in UTF-8. To translate other encodings, use converters supplied by the Internationalization Module. All characters or strings must contain complete UTF-8 characters. Partial encodings will result in the converter throwing an RWExternalStreamException.
void convert(char from, RWUChar& to);
Converts a single byte UTF-8 char to UTF-16 encoded RWUChar.
from |
contains the UTF-8 character to convert |
to |
returns the resulting UTF-16 character |
void convert(char from, wchar_t& to);
Converts a single byte UTF-8 char to UTF-16 encoded wchar_t.
void convert(char from, RWWString& to&);
Converts a single byte UTF-8 char to a UTF-16 encoded RWWString.
void convert(const char* from, size_t len, RWWString& to);
Converts one or more UTF-8 chars to a UTF-16 encoded RWWString.
void convert(const RWCString& from, RWWString& to);
void convert(const std::string& from, RWWString& to);
Converts a UTF-8 encoded std::string to a UTF-16 encoded RWWString.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.