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

Function SwigPyPacked_compare

src/MeCab/MeCab_wrap.cpp:1822–1829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1820}
1821
1822SWIGRUNTIME int
1823SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
1824{
1825 size_t i = v->size;
1826 size_t j = w->size;
1827 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1828 return s ? s : strncmp((const char *)v->pack, (const char *)w->pack, 2*v->size);
1829}
1830
1831SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
1832

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected