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

Function _wrap_StringList_pop

swig/python/export_wrap.cpp:10209–10234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10207
10208
10209SWIGINTERN PyObject *_wrap_StringList_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10210 PyObject *resultobj = 0;
10211 std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
10212 void *argp1 = 0 ;
10213 int res1 = 0 ;
10214 PyObject * obj0 = 0 ;
10215 std::vector< std::string >::value_type result;
10216
10217 if (!PyArg_ParseTuple(args,(char *)"O:StringList_pop",&obj0)) SWIG_fail;
10218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
10219 if (!SWIG_IsOK(res1)) {
10220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringList_pop" "', argument " "1"" of type '" "std::vector< std::string > *""'");
10221 }
10222 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
10223 try {
10224 result = std_vector_Sl_std_string_Sg__pop(arg1);
10225 }
10226 catch(std::out_of_range &_e) {
10227 SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
10228 }
10229
10230 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
10231 return resultobj;
10232fail:
10233 return NULL;
10234}
10235
10236
10237SWIGINTERN PyObject *_wrap_StringList___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {

Callers

nothing calls this directly

Calls 1

SWIG_From_std_stringFunction · 0.85

Tested by

no test coverage detected