MCPcopy Create free account
hub / github.com/chokkan/crfsuite / SWIG_AsVal_std_string

Function SWIG_AsVal_std_string

swig/python/export_wrap.cpp:5224–5239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5222
5223
5224SWIGINTERN int
5225SWIG_AsVal_std_string (PyObject * obj, std::string *val)
5226{
5227 std::string* v = (std::string *) 0;
5228 int res = SWIG_AsPtr_std_string (obj, &v);
5229 if (!SWIG_IsOK(res)) return res;
5230 if (v) {
5231 if (val) *val = *v;
5232 if (SWIG_IsNewObj(res)) {
5233 delete v;
5234 res = SWIG_DelNewMask(res);
5235 }
5236 return res;
5237 }
5238 return SWIG_ERROR;
5239}
5240
5241
5242SWIGINTERNINLINE PyObject *

Callers 1

asvalMethod · 0.85

Calls 1

SWIG_AsPtr_std_stringFunction · 0.85

Tested by

no test coverage detected