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

Function PyUnicode_IS_COMPACT

python3-sys/src/unicodeobject.rs:480–484  ·  view source on GitHub ↗
(o: *mut PyObject)

Source from the content-addressed store, hash-verified

478#[cfg(not(Py_LIMITED_API))]
479#[inline]
480unsafe fn PyUnicode_IS_COMPACT(o: *mut PyObject) -> bool {
481 let compact_bit = 1 << 5;
482 let state = (*(o as *mut PyASCIIObject)).state;
483 (state & compact_bit) != 0
484}
485
486#[cfg(not(Py_LIMITED_API))]
487pub const PyUnicode_WCHAR_KIND: u32 = 0;

Callers 1

PyUnicode_DATAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected