diff options
Diffstat (limited to 'cpp/include/Ice/StringConverter.h')
-rw-r--r-- | cpp/include/Ice/StringConverter.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/cpp/include/Ice/StringConverter.h b/cpp/include/Ice/StringConverter.h index 4166ad7f781..501156ec8c7 100644 --- a/cpp/include/Ice/StringConverter.h +++ b/cpp/include/Ice/StringConverter.h @@ -124,5 +124,38 @@ public: virtual void destroy(); }; +// +// Converts the given string from the native narrow string encoding to +// UTF8 using the given converter. If the converter is null, returns +// the given string. +// +ICE_API std::string +nativeToUTF8(const Ice::StringConverterPtr&, const std::string&); + +// +// Converts the given string from the native narrow string encoding to +// UTF8 using the communicator's converter. If the converter is null, +// returns the given string. +// +ICE_API std::string +nativeToUTF8(const Ice::CommunicatorPtr&, const std::string&); + +// +// Converts the given string from UTF8 to the native narrow string +// encoding using the given converter. If the converter is null, +// returns the given string. +// +ICE_API std::string +UTF8ToNative(const Ice::StringConverterPtr&, const std::string&); + +// +// Converts the given string from UTF8 to the native narrow string +// encoding using the communicator's converter. If the converter is +// null, returns the given string. +// +ICE_API std::string +UTF8ToNative(const Ice::CommunicatorPtr&, const std::string&); + } + #endif |