Upstream version 1.3.40
[profile/ivi/swig.git] / Lib / typemaps / wstring.swg
1 %ensure_fragment(SWIG_AsWCharPtrAndSize)
2 %ensure_fragment(SWIG_FromWCharPtrAndSize)
3
4
5 %types(wchar_t *);
6
7 %fragment("SWIG_pwchar_descriptor","header") {
8 SWIGINTERN swig_type_info*
9 SWIG_pwchar_descriptor()
10 {
11   static int init = 0;
12   static swig_type_info* info = 0;
13   if (!init) {
14     info = SWIG_TypeQuery("_p_wchar_t");
15     init = 1;
16   }
17   return info;
18 }
19 }
20
21 %include <typemaps/strings.swg>
22 %typemaps_string(%checkcode(UNISTRING), %checkcode(UNICHAR),
23                  wchar_t, WChar, SWIG_AsWCharPtrAndSize, SWIG_FromWCharPtrAndSize, wcslen,
24                 "<wchar.h>", WCHAR_MIN, WCHAR_MAX)
25