Ice 3.7 C++98 API Reference
Loading...
Searching...
No Matches
StringConverter.h File Reference
#include <IceUtil/Config.h>
#include <IceUtil/Exception.h>
#include <IceUtil/Shared.h>
#include <IceUtil/Handle.h>
#include <string>
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.

Classes

class  IceUtil::BasicStringConverter< charT >
 A StringConverter converts narrow or wide-strings to and from UTF-8 byte sequences. More...
class  IceUtil::UTF8Buffer
 Provides bytes to toUTF8. More...

Namespaces

namespace  IceUtil

Typedefs

typedef BasicStringConverter< char > IceUtil::StringConverter
 A narrow string converter.
typedef ::IceUtil::Handle< StringConverterIceUtil::StringConverterPtr
typedef BasicStringConverter< wchar_t > IceUtil::WstringConverter
 A wide string converter.
typedef ::IceUtil::Handle< WstringConverterIceUtil::WstringConverterPtr

Functions

WstringConverterPtr IceUtil::createUnicodeWstringConverter ()
 Creates a WstringConverter that converts to and from UTF-16 or UTF-32 depending on sizeof(wchar_t).
StringConverterPtr IceUtil::getProcessStringConverter ()
 Retrieves the per-process narrow string converter.
WstringConverterPtr IceUtil::getProcessWstringConverter ()
 Retrieves the per-process wide string converter.
std::string IceUtil::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.
void IceUtil::setProcessStringConverter (const StringConverterPtr &c)
 Sets the per-process narrow string converter.
void IceUtil::setProcessWstringConverter (const WstringConverterPtr &c)
 Sets the per process wide string converter.
std::wstring IceUtil::stringToWstring (const std::string &str, const StringConverterPtr &nc=0, const WstringConverterPtr &wc=0)
 Converts the given narrow string to a wide string.
std::string IceUtil::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.
std::string IceUtil::wstringToString (const std::wstring &str, const StringConverterPtr &nc=0, const WstringConverterPtr &wc=0)
 Converts the given wide string to a narrow string.