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)
  2. alias PyUnicode_Replace = PyUnicodeUCS2_Replace
    version(!Python_3_3_Or_Later && Python_Unicode_UCS2)
    extern (C)
    alias PyUnicode_Replace = PyUnicodeUCS2_Replace
  3. alias PyUnicode_Replace = PyUnicodeUCS4_Replace

Meta