diff options
Diffstat (limited to 'cpp/src/Ice/DeprecatedStringConverter.cpp')
-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()); +} |