Ice 3.7 C++11 API Reference
StringConverter.h
Go to the documentation of this file.
1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #ifndef ICE_STRING_CONVERTER_H
6 #define ICE_STRING_CONVERTER_H
7 
8 #include <Ice/Config.h>
10 #include <IceUtil/ConsoleUtil.h>
11 
12 namespace Ice
13 {
14 
17 
21 
25 
28 
29 #ifdef ICE_CPP11_MAPPING
30 
31 template<typename charT>
33 #endif
34 
35 #ifdef _WIN32
36 
40 using IceUtil::createWindowsStringConverter;
41 #endif
42 
45 
48 
51 
54 
57 
60 
63 
69 
75 
76 }
77 
78 #endif
IceUtil::getProcessWstringConverter
WstringConverterPtr getProcessWstringConverter()
Retrieves the per-process wide string converter.
IceUtil::IllegalConversionException
This exception indicates the failure of a string conversion.
Definition: Exception.h:237
ConsoleUtil.h
IceUtil::WstringConverterPtr
::std::shared_ptr< WstringConverter > WstringConverterPtr
Definition: StringConverter.h:84
IceUtil::nativeToUTF8
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.
Ice::StringConverterPtr
IceUtil::StringConverterPtr StringConverterPtr
Definition: StringConverter.h:20
IceUtil::setProcessStringConverter
void setProcessStringConverter(const StringConverterPtr &c)
Sets the per-process narrow string converter.
IceUtil::UTF8ToNative
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.
Ice::UTF8Buffer
IceUtil::UTF8Buffer UTF8Buffer
Encapsulates bytes in the UTF-8 encoding.
Definition: StringConverter.h:16
Ice::WstringConverterPtr
IceUtil::WstringConverterPtr WstringConverterPtr
Definition: StringConverter.h:24
Ice::WstringConverter
IceUtil::WstringConverter WstringConverter
Wide string converter.
Definition: StringConverter.h:23
IceUtil::UTF8Buffer
Provides bytes to toUTF8.
Definition: StringConverter.h:24
IceUtil::stringToWstring
std::wstring stringToWstring(const std::string &str, const StringConverterPtr &nc=0, const WstringConverterPtr &wc=0)
Converts the given narrow string to a wide string.
IceUtil::StringConverterPtr
::std::shared_ptr< StringConverter > StringConverterPtr
Definition: StringConverter.h:80
Config.h
StringConverter.h
Ice
Definition: BuiltinSequences.h:56
Ice::IllegalConversionException
IceUtil::IllegalConversionException IllegalConversionException
Indicates an error occurred during string conversion.
Definition: StringConverter.h:27
IceUtil::getProcessStringConverter
StringConverterPtr getProcessStringConverter()
Retrieves the per-process narrow string converter.
IceUtil::setProcessWstringConverter
void setProcessWstringConverter(const WstringConverterPtr &c)
Sets the per process wide string converter.
IceUtil::createUnicodeWstringConverter
WstringConverterPtr createUnicodeWstringConverter()
Creates a WstringConverter that converts to and from UTF-16 or UTF-32 depending on sizeof(wchar_t).
Ice::StringConverter
IceUtil::StringConverter StringConverter
Narrow string converter.
Definition: StringConverter.h:19
IceUtil::BasicStringConverter
A StringConverter converts narrow or wide-strings to and from UTF-8 byte sequences.
Definition: StringConverter.h:50
IceUtil::wstringToString
std::string wstringToString(const std::wstring &str, const StringConverterPtr &nc=0, const WstringConverterPtr &wc=0)
Converts the given wide string to a narrow string.