PyUnicode_Find

Return the first position of substr in str[start:end] using the given search direction or -1 if not found. -2 is returned in case an error occurred and an exception is set.

  1. Py_ssize_t PyUnicode_Find(PyObject* str, PyObject* substr, Py_ssize_t start, Py_ssize_t end, int direction)
    version(Python_3_3_Or_Later)
    PyUnicode_Find
  2. alias PyUnicode_Find = PyUnicodeUCS2_Find
  3. alias PyUnicode_Find = PyUnicodeUCS4_Find

Meta