PageRenderTime 7ms CodeModel.GetById 5ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Lib/typemaps/std_string.swg

#
Unknown | 27 lines | 18 code | 9 blank | 0 comment | 0 complexity | c8655c0188ed659d7c391335796cbf84 MD5 | raw file
 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  
15namespace 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