MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / PyUnicode_EncodeUTF8

Function PyUnicode_EncodeUTF8

Objects/unicodeobject.c:2128–2222  ·  view source on GitHub ↗

Allocation strategy: if the string is short, convert into a stack buffer and allocate exactly as much space needed at the end. Else allocate the maximum possible needed (4 result bytes per Unicode character), and return the excess memory at the end. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

utf_8_encodeFunction · 0.85
utf8_encodeFunction · 0.85
PyUnicode_AsUTF8StringFunction · 0.85
PyUnicode_FormatFunction · 0.85

Calls 3

PyErr_NoMemoryFunction · 0.85
_PyString_ResizeFunction · 0.85

Tested by

no test coverage detected