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

Function _wrap_StringList_front

swig/python/export_wrap.cpp:11590–11609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11588
11589
11590SWIGINTERN PyObject *_wrap_StringList_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11591 PyObject *resultobj = 0;
11592 std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
11593 void *argp1 = 0 ;
11594 int res1 = 0 ;
11595 PyObject * obj0 = 0 ;
11596 std::vector< std::string >::value_type *result = 0 ;
11597
11598 if (!PyArg_ParseTuple(args,(char *)"O:StringList_front",&obj0)) SWIG_fail;
11599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
11600 if (!SWIG_IsOK(res1)) {
11601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringList_front" "', argument " "1"" of type '" "std::vector< std::string > const *""'");
11602 }
11603 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
11604 result = (std::vector< std::string >::value_type *) &((std::vector< std::string > const *)arg1)->front();
11605 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
11606 return resultobj;
11607fail:
11608 return NULL;
11609}
11610
11611
11612SWIGINTERN PyObject *_wrap_StringList_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {

Callers

nothing calls this directly

Calls 2

SWIG_From_std_stringFunction · 0.85
frontMethod · 0.45

Tested by

no test coverage detected