mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-133968: Add PyUnicodeWriter_WriteASCII() function (#133973)
Replace most PyUnicodeWriter_WriteUTF8() calls with PyUnicodeWriter_WriteASCII(). Unrelated change to please the linter: remove an unused import in test_ctypes. Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
parent
4109a9c6b3
commit
f49a07b531
17 changed files with 103 additions and 31 deletions
|
@ -478,6 +478,10 @@ PyAPI_FUNC(int) PyUnicodeWriter_WriteUTF8(
|
|||
PyUnicodeWriter *writer,
|
||||
const char *str,
|
||||
Py_ssize_t size);
|
||||
PyAPI_FUNC(int) PyUnicodeWriter_WriteASCII(
|
||||
PyUnicodeWriter *writer,
|
||||
const char *str,
|
||||
Py_ssize_t size);
|
||||
PyAPI_FUNC(int) PyUnicodeWriter_WriteWideChar(
|
||||
PyUnicodeWriter *writer,
|
||||
const wchar_t *str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue