summaryrefslogtreecommitdiff
path: root/share/swig/2.0.11/typemaps/std_wstring.swg
blob: 670685fcac8d460b93ead74b41612a336ef0d4cc (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
%include <typemaps/wstring.swg>

#ifndef SWIG_STD_BASIC_STRING
#define SWIG_STD_WSTRING

%include <typemaps/std_strings.swg>

%{
#include <cwchar>
#include <string>
%}

namespace std
{
  %naturalvar wstring;
  class wstring;
}

%typemaps_std_string(std::wstring, wchar_t, SWIG_AsWCharPtrAndSize, SWIG_FromWCharPtrAndSize, %checkcode(STDUNISTRING));


#else

%include <std/std_wstring.i>

#endif