summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-06-24 15:40:39 (GMT)
committerGitHub <noreply@github.com>2024-06-24 15:40:39 (GMT)
commit2e157851e36d83b0cb079b161d633b16ab899d16 (patch)
tree9d5864953e9bfa43c56a0a46f18760f812d45c1c /Include/cpython
parenta47abdb45d4f1c3195c324812c33b6ef1d9147da (diff)
downloadcpython-2e157851e36d83b0cb079b161d633b16ab899d16.zip
cpython-2e157851e36d83b0cb079b161d633b16ab899d16.tar.gz
cpython-2e157851e36d83b0cb079b161d633b16ab899d16.tar.bz2
gh-119182: Add PyUnicodeWriter_WriteUCS4() function (#120849)
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/unicodeobject.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h
index 059bec8..9179913 100644
--- a/Include/cpython/unicodeobject.h
+++ b/Include/cpython/unicodeobject.h
@@ -463,6 +463,10 @@ PyAPI_FUNC(int) PyUnicodeWriter_WriteWideChar(
PyUnicodeWriter *writer,
const wchar_t *str,
Py_ssize_t size);
+PyAPI_FUNC(int) PyUnicodeWriter_WriteUCS4(
+ PyUnicodeWriter *writer,
+ Py_UCS4 *str,
+ Py_ssize_t size);
PyAPI_FUNC(int) PyUnicodeWriter_WriteStr(
PyUnicodeWriter *writer,