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

Function SWIG_Python_str_FromChar

src/MeCab/MeCab_wrap.cpp:836–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

834
835
836SWIGINTERN PyObject*
837SWIG_Python_str_FromChar(const char *c)
838{
839#if PY_VERSION_HEX >= 0x03000000
840 return PyUnicode_FromString(c);
841#else
842 return PyString_FromString(c);
843#endif
844}
845
846#ifndef PyObject_DEL
847# define PyObject_DEL PyObject_Del

Callers 4

SwigPyObject_formatFunction · 0.85
SwigPyPacked_strFunction · 0.85
SWIG_ThisFunction · 0.85
MeCab_wrap.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected