Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4640860 commit e4ea994Copy full SHA for e4ea994
1 file changed
Doc/c-api/unicode.rst
@@ -335,6 +335,14 @@ APIs:
335
buffer, *NULL* if *unicode* is not a Unicode object.
336
337
338
+.. cfunction:: Py_UNICODE* PyUnicode_AsUnicodeCopy(PyObject *unicode)
339
+
340
+ Create a copy of a unicode string ending with a nul character. Return *NULL*
341
+ and raise a :exc:`MemoryError` exception on memory allocation failure,
342
+ otherwise return a new allocated buffer (use :cfunc:`PyMem_Free` to free the
343
+ buffer).
344
345
346
.. cfunction:: Py_ssize_t PyUnicode_GetSize(PyObject *unicode)
347
348
Return the length of the Unicode object.
0 commit comments