Module: Advanced Tools Package: Streams
Does not inherit
#include <rw/stream/RWToUTF8Converter.h>
RWToUTF8Converter converts RWUChar, RWWString, wchar_t or std::wstring UTF-16 values to UTF-8. The character or string to be converted must encoded in UTF-16. To translate other encodings, use converters supplied by the Internationalization Module.
void convert(RWUChar from, RWCString& to);
Converts one UTF-16 RWUChar to a UTF-8 encoded RWCString.
from |
contains the UTF-16 character to convert. |
to |
returns the resulting UTF-8 string |
void convert(const RWUChar* from, size_t len, RWCString& to);
Converts several UTF-16 RWUChars to a UTF-8 encoded RWCString.
void convert(wchar_t from, RWCString& to);
Converts one UTF-16 wchar_t to a UTF-8 encoded RWCString.
void convert(const wchar_t* from, size_t len, RWCString& to);
Converts several UTF-16 wchar_t's to a UTF-8 encoded RWCString.
void convert(const RWWString& from,RWCString& to);
void convert(const std::wstring& from, RWCString& to);
Converts a UTF-16 std::wstring to a UTF-8 encoded RWCString.
© 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.