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

Function SwigPyPacked_str

src/MeCab/MeCab_wrap.cpp:1811–1820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1809}
1810
1811SWIGRUNTIME PyObject *
1812SwigPyPacked_str(SwigPyPacked *v)
1813{
1814 char result[SWIG_BUFFER_SIZE];
1815 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1816 return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
1817 } else {
1818 return SWIG_Python_str_FromChar(v->ty->name);
1819 }
1820}
1821
1822SWIGRUNTIME int
1823SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)

Callers

nothing calls this directly

Calls 2

SWIG_PackDataNameFunction · 0.85
SWIG_Python_str_FromCharFunction · 0.85

Tested by

no test coverage detected