summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/StringConverter.h
blob: ac002394a21d8071f7e3ad29bb851ad01fae422a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// **********************************************************************
//
// Copyright (c) 2003-2016 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.
//
// **********************************************************************

#ifndef ICE_STRING_CONVERTER_H
#define ICE_STRING_CONVERTER_H

#include <Ice/Config.h>
#include <IceUtil/StringConverter.h>

namespace Ice
{

typedef IceUtil::UTF8Buffer UTF8Buffer;
typedef IceUtil::StringConverter StringConverter;
typedef IceUtil::StringConverterPtr StringConverterPtr;
typedef IceUtil::WstringConverter WstringConverter;
typedef IceUtil::WstringConverterPtr WstringConverterPtr;

typedef IceUtil::IllegalConversionException IllegalConversionException;

#ifdef ICE_CPP11_MAPPING
template<typename charT>
using BasicStringConverter = IceUtil::BasicStringConverter<charT>;
#endif

#ifdef _WIN32
//
// Create a StringConverter that converts to and from narrow chars
// in the given code page, using MultiByteToWideChar and WideCharToMultiByte
//
ICE_API StringConverterPtr createWindowsStringConverter(unsigned int);
#endif

using IceUtil::createUnicodeWstringConverter;

using IceUtil::setProcessStringConverter;
using IceUtil::getProcessStringConverter;
using IceUtil::setProcessWstringConverter;
using IceUtil::getProcessWstringConverter;

using IceUtil::wstringToString;
using IceUtil::stringToWstring;

using IceUtil::nativeToUTF8;
using IceUtil::UTF8ToNative;

}

#endif