Ice 3.7 C++98 API Reference
Loading...
Searching...
No Matches
StringConverter.h File Reference
Include dependency graph for StringConverter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Ice

Typedefs

typedef IceUtil::IllegalConversionException Ice::IllegalConversionException
 Indicates an error occurred during string conversion.
typedef IceUtil::StringConverter Ice::StringConverter
 Narrow string converter.
typedef IceUtil::StringConverterPtr Ice::StringConverterPtr
typedef IceUtil::UTF8Buffer Ice::UTF8Buffer
 Encapsulates bytes in the UTF-8 encoding.
typedef IceUtil::WstringConverter Ice::WstringConverter
 Wide string converter.
typedef IceUtil::WstringConverterPtr Ice::WstringConverterPtr

Functions

WstringConverterPtr Ice::createUnicodeWstringConverter ()
 Creates a string converter that converts between Unicode wide strings and UTF-8 strings.
StringConverterPtr Ice::getProcessStringConverter ()
 Obtains the default narrow string converter for the process.
WstringConverterPtr Ice::getProcessWstringConverter ()
 Obtains the default wide string converter for the process.
std::string Ice::nativeToUTF8 (const std::string &str, const StringConverterPtr &nc)
 Converts a narrow string to a UTF-8 encoded string using a string converter.
void Ice::setProcessStringConverter (const StringConverterPtr &c)
 Installs a default narrow string converter for the process.
void Ice::setProcessWstringConverter (const WstringConverterPtr &c)
 Installs a default wide string converter for the process.
std::wstring Ice::stringToWstring (const std::string &str, const StringConverterPtr &nc=0, const WstringConverterPtr &wc=0)
 Converts a narrow string to a wide string.
std::string Ice::UTF8ToNative (const std::string &str, const StringConverterPtr &nc)
 Converts a UTF-8 encoded string to a narrow string using a string converter.
std::string Ice::wstringToString (const std::wstring &str, const StringConverterPtr &nc=0, const WstringConverterPtr &wc=0)
 Converts a wide string to a narrow string.