MCPcopy Create free account
hub / github.com/SamuraiT/mecab-python3 / _wrap_Node_length_get

Function _wrap_Node_length_get

src/MeCab/MeCab_wrap.cpp:4790–4809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4788
4789
4790SWIGINTERN PyObject *_wrap_Node_length_get(PyObject *self, PyObject *args) {
4791 PyObject *resultobj = 0;
4792 mecab_node_t *arg1 = (mecab_node_t *) 0 ;
4793 void *argp1 = 0 ;
4794 int res1 = 0 ;
4795 PyObject *swig_obj[1] ;
4796 unsigned short result;
4797
4798 if (!SWIG_Python_UnpackTuple(args, "Node_length_get", 0, 0, 0)) SWIG_fail;
4799 res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_mecab_node_t, 0 | 0 );
4800 if (!SWIG_IsOK(res1)) {
4801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Node_length_get" "', argument " "1"" of type '" "mecab_node_t *""'");
4802 }
4803 arg1 = reinterpret_cast< mecab_node_t * >(argp1);
4804 result = (unsigned short) ((arg1)->length);
4805 resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
4806 return resultobj;
4807fail:
4808 return NULL;
4809}
4810
4811
4812SWIGINTERN PyObject *_wrap_Node_rlength_get(PyObject *self, PyObject *args) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected