File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -614,6 +614,23 @@ APIs:
614
614
decref'ing the returned objects.
615
615
616
616
617
+ .. c:function:: void PyUnicode_Append(PyObject **p_left, PyObject *right)
618
+
619
+ Append the string *right * to the end of *p_left *.
620
+ *p_left * must point to a :term: `strong reference ` to a Unicode object;
621
+ :c:func: `!PyUnicode_Append ` releases ("steals") this reference.
622
+
623
+ On error, set *\*p_left* to ``NULL`` and set an exception.
624
+
625
+ On sucess, set *\*p_left* to a new strong reference to the result.
626
+
627
+
628
+ .. c:function:: void PyUnicode_AppendAndDel(PyObject **p_left, PyObject *right)
629
+
630
+ The function is similar to :c:func: `PyUnicode_Append `, with the only
631
+ difference being that it decrements the reference count of *right * by one.
632
+
633
+
617
634
.. c :function :: const char * PyUnicode_GetDefaultEncoding (void)
618
635
619
636
Return the name of the default string encoding, ``"utf-8"``.
Original file line number Diff line number Diff line change @@ -2770,6 +2770,14 @@ PyUnicode_FromFormatV:PyObject*::+1:
2770
2770
PyUnicode_FromFormatV:const char*:format::
2771
2771
PyUnicode_FromFormatV:va_list:args::
2772
2772
2773
+ PyUnicode_Append:void:::
2774
+ PyUnicode_Append:PyObject**:p_left:0:
2775
+ PyUnicode_Append:PyObject*:right::
2776
+
2777
+ PyUnicode_AppendAndDel:void:::
2778
+ PyUnicode_AppendAndDel:PyObject**:p_left:0:
2779
+ PyUnicode_AppendAndDel:PyObject*:right:-1:
2780
+
2773
2781
PyUnicode_GetDefaultEncoding:const char*:::
2774
2782
PyUnicode_GetDefaultEncoding::void::
2775
2783
You can’t perform that action at this time.
0 commit comments