From 680cf876534d99f1e7574872b2626d2ea7d1e847 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Fri, 16 May 2014 12:34:49 -0400 Subject: New header for backwards compat with Ice 3.5 --- cpp/src/Ice/DeprecatedStringConverter.cpp | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 cpp/src/Ice/DeprecatedStringConverter.cpp (limited to 'cpp/src/Ice/DeprecatedStringConverter.cpp') 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 +#include +#include + +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()); +} -- cgit v1.2.3