@@ -1399,13 +1399,34 @@ They all return ``NULL`` or ``-1`` if an exception occurs.
1399
1399
set. Separators are not included in the resulting list.
1400
1400
1401
1401
1402
+ .. c :function :: PyObject* PyUnicode_RSplit (PyObject *unicode, PyObject *sep, Py_ssize_t maxsplit)
1403
+
1404
+ Similar to :c:func: `PyUnicode_Split `, but splitting will be done beginning
1405
+ at the end of the string.
1406
+
1407
+
1402
1408
.. c :function :: PyObject* PyUnicode_Splitlines (PyObject *unicode, int keepends)
1403
1409
1404
1410
Split a Unicode string at line breaks, returning a list of Unicode strings.
1405
1411
CRLF is considered to be one line break. If *keepends * is ``0 ``, the Line break
1406
1412
characters are not included in the resulting strings.
1407
1413
1408
1414
1415
+ .. c :function :: PyObject* PyUnicode_Partition (PyObject *unicode, PyObject *sep)
1416
+
1417
+ Split the string at the first occurrence of sep, and return a 3-tuple containing
1418
+ the part before the separator, the separator itself, and the part after the separator.
1419
+ If the separator is not found, return a 3-tuple containing the string itself,
1420
+ followed by two empty strings.
1421
+
1422
+
1423
+ .. c :function :: PyObject* PyUnicode_RPartition (PyObject *unicode, PyObject *sep)
1424
+
1425
+ Similar to :c:func: `PyUnicode_Partition `, but split the string at the last
1426
+ occurrence of sep. If the separator is not found, return a 3-tuple containing
1427
+ two empty strings, followed by the string itself.
1428
+
1429
+
1409
1430
.. c :function :: PyObject* PyUnicode_Join (PyObject *separator, PyObject *seq)
1410
1431
1411
1432
Join a sequence of strings using the given *separator * and return the resulting
0 commit comments