PyUnicode_Contains

Checks whether element is contained in container and return 1/0 accordingly.

element has to coerce to an one element Unicode string. -1 is returned in case of an error.

  1. int PyUnicode_Contains(PyObject* container, PyObject* element)
  2. alias PyUnicode_Contains = PyUnicodeUCS2_Contains
  3. alias PyUnicode_Contains = PyUnicodeUCS4_Contains
    version(!Python_3_3_Or_Later && !Python_Unicode_UCS2)
    extern (C)
    alias PyUnicode_Contains = PyUnicodeUCS4_Contains

Meta