PyUnicode_RSplit

Split a string giving a list of Unicode strings.

If sep is NULL, splitting will be done at all whitespace substrings. Otherwise, splits occur at the given separator.

At most maxsplit splits will be done. But unlike PyUnicode_Split PyUnicode_RSplit splits from the end of the string. If negative, no limit is set.

Separators are not included in the resulting list.

  1. PyObject* PyUnicode_RSplit(PyObject* s, PyObject* sep, Py_ssize_t maxsplit)
  2. alias PyUnicode_RSplit = PyUnicodeUCS2_RSplit
    version(!Python_3_3_Or_Later && Python_Unicode_UCS2)
    extern (C)
    alias PyUnicode_RSplit = PyUnicodeUCS2_RSplit
  3. alias PyUnicode_RSplit = PyUnicodeUCS4_RSplit

Meta