diff options
author | Bernard Normier <bernard@zeroc.com> | 2014-05-16 12:34:49 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2014-05-16 12:34:49 -0400 |
commit | 680cf876534d99f1e7574872b2626d2ea7d1e847 (patch) | |
tree | ac64179090f0adbd06f1733fe43abbf50fa8d3ce /cpp/src | |
parent | Updated nativeToUTF8 and UTF8ToNative for consistency with stringToWstring/ws... (diff) | |
download | ice-680cf876534d99f1e7574872b2626d2ea7d1e847.tar.bz2 ice-680cf876534d99f1e7574872b2626d2ea7d1e847.tar.xz ice-680cf876534d99f1e7574872b2626d2ea7d1e847.zip |
New header for backwards compat with Ice 3.5
Diffstat (limited to 'cpp/src')
-rwxr-xr-x | cpp/src/Ice/DeprecatedStringConverter.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/cpp/src/Ice/DeprecatedStringConverter.cpp b/cpp/src/Ice/DeprecatedStringConverter.cpp new file mode 100755 index 00000000000..c893a5c00a0 --- /dev/null +++ b/cpp/src/Ice/DeprecatedStringConverter.cpp @@ -0,0 +1,36 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <Ice/DeprecatedStringConverter.h> +#include <Ice/Initialize.h> +#include <Ice/Instance.h> + +std::string +Ice::nativeToUTF8(const Ice::StringConverterPtr& converter, const std::string& s) +{ + return IceUtil::nativeToUTF8(s, converter); +} + +std::string +Ice::nativeToUTF8(const Ice::CommunicatorPtr& communicator, const std::string& s) +{ + return IceUtil::nativeToUTF8(s, IceInternal::getInstance(communicator)->getStringConverter()); +} + +std::string +Ice::UTF8toNative(const Ice::StringConverterPt& converter, const std::string& s) +{ + return IceUtil::UTF8ToNative(s, converter); +} + +std::string +Ice::UTF8ToNative(const Ice::CommunicatorPtr& communicator, const std::string& s) +{ + return IceUtil::UTF8ToNative(s, IceInternal::getInstance(communicator)->getStringConverter()); +} |