MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / __Pyx_Py_UNICODE_strlen

Function __Pyx_Py_UNICODE_strlen

eval/CIPO_evaluation/pycocotools/_mask.c:695–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693#define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s)
694#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
695static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
696 const Py_UNICODE *u_end = u;
697 while (*u_end++) ;
698 return (size_t)(u_end - u - 1);
699}
700#define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
701#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
702#define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected