PyUnicode_Count

Count the number of occurrences of substr in str[start:end].

  1. Py_ssize_t PyUnicode_Count(PyObject* str, PyObject* substr, Py_ssize_t start, Py_ssize_t end)
  2. alias PyUnicode_Count = PyUnicodeUCS2_Count
  3. alias PyUnicode_Count = PyUnicodeUCS4_Count
    version(!Python_3_3_Or_Later && !Python_Unicode_UCS2)
    extern (C)
    alias PyUnicode_Count = PyUnicodeUCS4_Count

Meta