Lines Matching refs:string
7 * SWIG typemaps for std::string
11 // std::string is typemapped by value
12 // This can prevent exporting methods which return a string
20 #include <string>
25 %naturalvar string;
27 class string;
29 %typemap(typecheck) string = char *;
30 %typemap(typecheck) const string & = char *;
32 %typemap(in) string (char* tempptr) {
38 SWIG_exception(SWIG_TypeError, "string expected");
42 %typemap(in) const string & (std::string temp,
50 SWIG_exception(SWIG_TypeError, "string expected");
54 %typemap(in) string * (char* tempptr) {
57 $1 = new std::string(tempptr);
60 SWIG_exception(SWIG_TypeError, "string expected");
64 %typemap(out) string {
68 %typemap(out) const string & {
72 %typemap(out) string * {
76 %typemap(varin) string {
82 SWIG_exception(SWIG_TypeError, "string expected");
86 %typemap(varout) string {