MCPcopy Create free account
hub / github.com/chokkan/crfsuite / SWIG_Python_str_FromChar

Function SWIG_Python_str_FromChar

swig/python/export_wrap.cpp:813–821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811
812
813SWIGINTERN PyObject*
814SWIG_Python_str_FromChar(const char *c)
815{
816#if PY_VERSION_HEX >= 0x03000000
817 return PyUnicode_FromString(c);
818#else
819 return PyString_FromString(c);
820#endif
821}
822
823/* Add PyOS_snprintf for old Pythons */
824#if PY_VERSION_HEX < 0x02020000

Callers 5

SwigPyObject_formatFunction · 0.85
SwigPyObject_strFunction · 0.85
SwigPyPacked_strFunction · 0.85
_SWIG_ThisFunction · 0.85
export_wrap.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected