/trunk/Lib/typemaps/std_wstring.swg

# · Unknown · 26 lines · 17 code · 9 blank · 0 comment · 0 complexity · 6097465123b15cbc44e4cf71588bdcf3 MD5 · raw file

  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