PageRenderTime 43ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Lib/typemaps/wstring.swg

#
Unknown | 25 lines | 20 code | 5 blank | 0 comment | 0 complexity | 3f3f1d5f67a687b5a94c2724d2aa6696 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %ensure_fragment(SWIG_AsWCharPtrAndSize)
  2. %ensure_fragment(SWIG_FromWCharPtrAndSize)
  3. %types(wchar_t *);
  4. %fragment("SWIG_pwchar_descriptor","header") {
  5. SWIGINTERN swig_type_info*
  6. SWIG_pwchar_descriptor()
  7. {
  8. static int init = 0;
  9. static swig_type_info* info = 0;
  10. if (!init) {
  11. info = SWIG_TypeQuery("_p_wchar_t");
  12. init = 1;
  13. }
  14. return info;
  15. }
  16. }
  17. %include <typemaps/strings.swg>
  18. %typemaps_string(%checkcode(UNISTRING), %checkcode(UNICHAR),
  19. wchar_t, WChar, SWIG_AsWCharPtrAndSize, SWIG_FromWCharPtrAndSize, wcslen,
  20. "<wchar.h>", WCHAR_MIN, WCHAR_MAX)