PageRenderTime 1246ms CodeModel.GetById 35ms RepoModel.GetById 32ms app.codeStats 0ms

/trunk/Lib/typemaps/std_wstring.swg

#
Unknown | 26 lines | 17 code | 9 blank | 0 comment | 0 complexity | 6097465123b15cbc44e4cf71588bdcf3 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %include <typemaps/wstring.swg>
  2. #ifndef SWIG_STD_BASIC_STRING
  3. #define SWIG_STD_WSTRING
  4. %include <typemaps/std_strings.swg>
  5. %{
  6. #include <cwchar>
  7. #include <string>
  8. %}
  9. namespace std
  10. {
  11. %naturalvar wstring;
  12. class wstring;
  13. }
  14. %typemaps_std_string(std::wstring, wchar_t, SWIG_AsWCharPtrAndSize, SWIG_FromWCharPtrAndSize, %checkcode(STDUNISTRING));
  15. #else
  16. %include <std/std_wstring.i>
  17. #endif