PyUnicode_Replace

Replace at most maxcount occurrences of substr in str with replstr and return the resulting Unicode object.

  1. PyObject* PyUnicode_Replace(PyObject* str, PyObject* substr, PyObject* replstr, Py_ssize_t maxcount)
    version(Python_3_3_Or_Later)
    PyUnicode_Replace
  2. alias PyUnicode_Replace = PyUnicodeUCS2_Replace
  3. alias PyUnicode_Replace = PyUnicodeUCS4_Replace

Meta