PyUnicodeUCS2_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 PyUnicodeUCS2_Find(PyObject* str, PyObject* substr, Py_ssize_t start, Py_ssize_t end, int direction)
    version(Python_Unicode_UCS2)
    PyUnicodeUCS2_Find
  2. alias PyUnicode_Find = PyUnicodeUCS2_Find

Meta