PageRenderTime 184ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1.3.35/Lib/typemaps/std_string.swg

#
Unknown | 27 lines | 18 code | 9 blank | 0 comment | 0 complexity | c8655c0188ed659d7c391335796cbf84 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. //
  2. // String
  3. //
  4. #ifndef SWIG_STD_BASIC_STRING
  5. #define SWIG_STD_STRING
  6. %include <typemaps/std_strings.swg>
  7. %{
  8. #include <string>
  9. %}
  10. namespace std
  11. {
  12. %naturalvar string;
  13. class string;
  14. }
  15. %typemaps_std_string(std::string, char, SWIG_AsCharPtrAndSize, SWIG_FromCharPtrAndSize, %checkcode(STDSTRING));
  16. #else
  17. %include <std/std_string.i>
  18. #endif