Home | History | Annotate | Download | only in typemaps
      1 //
      2 // String
      3 //
      4 
      5 
      6 #ifndef SWIG_STD_BASIC_STRING
      7 #define SWIG_STD_STRING
      8 
      9 %include <typemaps/std_strings.swg>
     10 
     11 %{
     12 #include <string>
     13 %}
     14   
     15 namespace std
     16 {
     17   %naturalvar string;
     18   class string;
     19 }
     20 
     21 %typemaps_std_string(std::string, char, SWIG_AsCharPtrAndSize, SWIG_FromCharPtrAndSize, %checkcode(STDSTRING));
     22 
     23 #else
     24 
     25 %include <std/std_string.i>
     26 
     27 #endif
     28