Ice 3.7 C++11 API Reference
|
Go to the documentation of this file.
5 #ifndef ICE_STRING_CONVERTER_H
6 #define ICE_STRING_CONVERTER_H
29 #ifdef ICE_CPP11_MAPPING
31 template<
typename charT>
40 using IceUtil::createWindowsStringConverter;
WstringConverterPtr getProcessWstringConverter()
Retrieves the per-process wide string converter.
This exception indicates the failure of a string conversion.
Definition: Exception.h:237
::std::shared_ptr< WstringConverter > WstringConverterPtr
Definition: StringConverter.h:84
std::string nativeToUTF8(const std::string &str, const StringConverterPtr &nc)
Converts the given string from the native narrow string encoding to UTF-8 using the given converter.
IceUtil::StringConverterPtr StringConverterPtr
Definition: StringConverter.h:20
void setProcessStringConverter(const StringConverterPtr &c)
Sets the per-process narrow string converter.
std::string UTF8ToNative(const std::string &str, const StringConverterPtr &nc)
Converts the given string from UTF-8 to the native narrow string encoding using the given converter.
IceUtil::UTF8Buffer UTF8Buffer
Encapsulates bytes in the UTF-8 encoding.
Definition: StringConverter.h:16
IceUtil::WstringConverterPtr WstringConverterPtr
Definition: StringConverter.h:24
IceUtil::WstringConverter WstringConverter
Wide string converter.
Definition: StringConverter.h:23
Provides bytes to toUTF8.
Definition: StringConverter.h:24
std::wstring stringToWstring(const std::string &str, const StringConverterPtr &nc=0, const WstringConverterPtr &wc=0)
Converts the given narrow string to a wide string.
::std::shared_ptr< StringConverter > StringConverterPtr
Definition: StringConverter.h:80
Definition: BuiltinSequences.h:56
IceUtil::IllegalConversionException IllegalConversionException
Indicates an error occurred during string conversion.
Definition: StringConverter.h:27
StringConverterPtr getProcessStringConverter()
Retrieves the per-process narrow string converter.
void setProcessWstringConverter(const WstringConverterPtr &c)
Sets the per process wide string converter.
WstringConverterPtr createUnicodeWstringConverter()
Creates a WstringConverter that converts to and from UTF-16 or UTF-32 depending on sizeof(wchar_t).
IceUtil::StringConverter StringConverter
Narrow string converter.
Definition: StringConverter.h:19
A StringConverter converts narrow or wide-strings to and from UTF-8 byte sequences.
Definition: StringConverter.h:50
std::string wstringToString(const std::wstring &str, const StringConverterPtr &nc=0, const WstringConverterPtr &wc=0)
Converts the given wide string to a narrow string.