PageRenderTime 18ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Lib/typemaps/wstring.swg

#
Unknown | 25 lines | 20 code | 5 blank | 0 comment | 0 complexity | 3f3f1d5f67a687b5a94c2724d2aa6696 MD5 | raw file
 1%ensure_fragment(SWIG_AsWCharPtrAndSize)
 2%ensure_fragment(SWIG_FromWCharPtrAndSize)
 3
 4
 5%types(wchar_t *);
 6
 7%fragment("SWIG_pwchar_descriptor","header") {
 8SWIGINTERN swig_type_info*
 9SWIG_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