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

Function _wrap_StringList_append

swig/python/export_wrap.cpp:10952–10986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10950
10951
10952SWIGINTERN PyObject *_wrap_StringList_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10953 PyObject *resultobj = 0;
10954 std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
10955 std::vector< std::string >::value_type *arg2 = 0 ;
10956 void *argp1 = 0 ;
10957 int res1 = 0 ;
10958 int res2 = SWIG_OLDOBJ ;
10959 PyObject * obj0 = 0 ;
10960 PyObject * obj1 = 0 ;
10961
10962 if (!PyArg_ParseTuple(args,(char *)"OO:StringList_append",&obj0,&obj1)) SWIG_fail;
10963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
10964 if (!SWIG_IsOK(res1)) {
10965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringList_append" "', argument " "1"" of type '" "std::vector< std::string > *""'");
10966 }
10967 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
10968 {
10969 std::string *ptr = (std::string *)0;
10970 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
10971 if (!SWIG_IsOK(res2)) {
10972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringList_append" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'");
10973 }
10974 if (!ptr) {
10975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringList_append" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'");
10976 }
10977 arg2 = ptr;
10978 }
10979 std_vector_Sl_std_string_Sg__append(arg1,(std::string const &)*arg2);
10980 resultobj = SWIG_Py_Void();
10981 if (SWIG_IsNewObj(res2)) delete arg2;
10982 return resultobj;
10983fail:
10984 if (SWIG_IsNewObj(res2)) delete arg2;
10985 return NULL;
10986}
10987
10988
10989SWIGINTERN PyObject *_wrap_new_StringList__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {

Callers

nothing calls this directly

Calls 3

SWIG_AsPtr_std_stringFunction · 0.85
SWIG_Py_VoidFunction · 0.85

Tested by

no test coverage detected