MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / PyUnicode_AsUTF8String

Function PyUnicode_AsUTF8String

python27-sys/src/unicodeobject.rs:659–661  ·  view source on GitHub ↗
(u: *mut PyObject)

Source from the content-addressed store, hash-verified

657#[inline(always)]
658#[cfg(py_sys_config = "Py_UNICODE_SIZE_4")]
659pub unsafe fn PyUnicode_AsUTF8String(u: *mut PyObject) -> *mut PyObject {
660 PyUnicodeUCS4_AsUTF8String(u)
661}
662
663#[inline(always)]
664#[cfg(not(py_sys_config = "Py_UNICODE_SIZE_4"))]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected