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

Function _wrap_Node_cost_get

src/MeCab/MeCab_wrap.cpp:5084–5103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5082
5083
5084SWIGINTERN PyObject *_wrap_Node_cost_get(PyObject *self, PyObject *args) {
5085 PyObject *resultobj = 0;
5086 mecab_node_t *arg1 = (mecab_node_t *) 0 ;
5087 void *argp1 = 0 ;
5088 int res1 = 0 ;
5089 PyObject *swig_obj[1] ;
5090 long result;
5091
5092 if (!SWIG_Python_UnpackTuple(args, "Node_cost_get", 0, 0, 0)) SWIG_fail;
5093 res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_mecab_node_t, 0 | 0 );
5094 if (!SWIG_IsOK(res1)) {
5095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Node_cost_get" "', argument " "1"" of type '" "mecab_node_t *""'");
5096 }
5097 arg1 = reinterpret_cast< mecab_node_t * >(argp1);
5098 result = (long) ((arg1)->cost);
5099 resultobj = SWIG_From_long(static_cast< long >(result));
5100 return resultobj;
5101fail:
5102 return NULL;
5103}
5104
5105
5106SWIGINTERN PyObject *_wrap_Node_surface_get(PyObject *self, PyObject *args) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected