mirror of
https://github.com/python/cpython.git
synced 2025-07-18 00:35:17 +00:00
Issue #28295: Fixed the documentation and added tests for PyUnicode_AsUCS4().
Original patch by Xiang Zhang.
This commit is contained in:
parent
63b5b6fd45
commit
cc164232aa
4 changed files with 50 additions and 2 deletions
|
@ -749,7 +749,7 @@ PyAPI_FUNC(Py_UCS4) _PyUnicode_FindMaxChar (
|
|||
#endif
|
||||
|
||||
/* Copy the string into a UCS4 buffer including the null character if copy_null
|
||||
is set. Return NULL and raise an exception on error. Raise a ValueError if
|
||||
is set. Return NULL and raise an exception on error. Raise a SystemError if
|
||||
the buffer is smaller than the string. Return buffer on success.
|
||||
|
||||
buflen is the length of the buffer in (Py_UCS4) characters. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue