File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -730,6 +730,19 @@ APIs:
730730 .. versionadded:: 3.3
731731
732732
733+ .. c:function:: int PyUnicode_Resize(PyObject **p_unicode, Py_ssize_t length)
734+
735+ Resize a Unicode object to the new *length * in code points. ``*p_unicode ``
736+ must point to a strong reference to a new, unshared Unicode object.
737+
738+ The string must not have been “used” yet.
739+ See :c:func: `PyUnicode_New ` for details.
740+
741+ Return ``0 `` on success, or ``-1 `` on error with an exception set.
742+
743+ .. versionadded :: 2.7
744+
745+
733746.. c :function :: Py_UCS4* PyUnicode_AsUCS4 (PyObject *unicode, Py_UCS4 *buffer, \
734747 Py_ssize_t buflen, int copy_null)
735748
Original file line number Diff line number Diff line change @@ -2659,6 +2659,10 @@ PyUnicode_Partition:PyObject*::+1:
26592659PyUnicode_Partition:PyObject*:unicode:0:
26602660PyUnicode_Partition:PyObject*:sep:0:
26612661
2662+ PyUnicode_Resize:int:::
2663+ PyUnicode_Resize:PyObject*:p_unicode:0:
2664+ PyUnicode_Resize:Py_ssize_t:length::
2665+
26622666PyUnicode_RPartition:PyObject*::+1:
26632667PyUnicode_RPartition:PyObject*:unicode:0:
26642668PyUnicode_RPartition:PyObject*:sep:0:
You can’t perform that action at this time.
0 commit comments