/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
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