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

Function _wrap_Node_id_get

src/MeCab/MeCab_wrap.cpp:4768–4787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4766
4767
4768SWIGINTERN PyObject *_wrap_Node_id_get(PyObject *self, PyObject *args) {
4769 PyObject *resultobj = 0;
4770 mecab_node_t *arg1 = (mecab_node_t *) 0 ;
4771 void *argp1 = 0 ;
4772 int res1 = 0 ;
4773 PyObject *swig_obj[1] ;
4774 unsigned int result;
4775
4776 if (!SWIG_Python_UnpackTuple(args, "Node_id_get", 0, 0, 0)) SWIG_fail;
4777 res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_mecab_node_t, 0 | 0 );
4778 if (!SWIG_IsOK(res1)) {
4779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Node_id_get" "', argument " "1"" of type '" "mecab_node_t *""'");
4780 }
4781 arg1 = reinterpret_cast< mecab_node_t * >(argp1);
4782 result = (unsigned int) ((arg1)->id);
4783 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
4784 return resultobj;
4785fail:
4786 return NULL;
4787}
4788
4789
4790SWIGINTERN PyObject *_wrap_Node_length_get(PyObject *self, PyObject *args) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected