MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / PyUnicodeWriter_WriteChar

Function PyUnicodeWriter_WriteChar

asyncpg/protocol/record/pythoncapi_compat.h:1403–1413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1401}
1402
1403static inline int
1404PyUnicodeWriter_WriteChar(PyUnicodeWriter *writer, Py_UCS4 ch)
1405{
1406 if (ch > 0x10ffff) {
1407 PyErr_SetString(PyExc_ValueError,
1408 "character must be in range(0x110000)");
1409 return -1;
1410 }
1411
1412 return _PyUnicodeWriter_WriteChar((_PyUnicodeWriter*)writer, ch);
1413}
1414
1415static inline int
1416PyUnicodeWriter_WriteStr(PyUnicodeWriter *writer, PyObject *obj)

Callers 1

record_reprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected