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

Function _wrap_Node_surface_get

src/MeCab/MeCab_wrap.cpp:5106–5136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5104
5105
5106SWIGINTERN PyObject *_wrap_Node_surface_get(PyObject *self, PyObject *args) {
5107 PyObject *resultobj = 0;
5108 mecab_node_t *arg1 = (mecab_node_t *) 0 ;
5109 void *argp1 = 0 ;
5110 int res1 = 0 ;
5111 PyObject *swig_obj[1] ;
5112 char *result = 0 ;
5113
5114 if (!SWIG_Python_UnpackTuple(args, "Node_surface_get", 0, 0, 0)) SWIG_fail;
5115 res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_mecab_node_t, 0 | 0 );
5116 if (!SWIG_IsOK(res1)) {
5117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Node_surface_get" "', argument " "1"" of type '" "mecab_node_t *""'");
5118 }
5119 arg1 = reinterpret_cast< mecab_node_t * >(argp1);
5120 {
5121 try {
5122 result = (char *)mecab_node_t_surface_get(arg1);
5123 }
5124 catch (char *e) {
5125 SWIG_exception (SWIG_RuntimeError, e);
5126 }
5127 catch (const char *e) {
5128 SWIG_exception (SWIG_RuntimeError, (char*)e);
5129 }
5130 }
5131 resultobj = SWIG_FromCharPtr((const char *)result);
5132 delete[] result;
5133 return resultobj;
5134fail:
5135 return NULL;
5136}
5137
5138
5139SWIGINTERN PyObject *_wrap_delete_Node(PyObject *self, PyObject *args) {

Callers

nothing calls this directly

Calls 2

mecab_node_t_surface_getFunction · 0.85
SWIG_FromCharPtrFunction · 0.85

Tested by

no test coverage detected