Commit d0d366b5 authored by Guido van Rossum's avatar Guido van Rossum

Marc-Andre Lemburg: add declaration for PyUnicode_Contains().

parent d4d26842
...@@ -683,6 +683,17 @@ extern DL_IMPORT(PyObject *) PyUnicode_Format( ...@@ -683,6 +683,17 @@ extern DL_IMPORT(PyObject *) PyUnicode_Format(
PyObject *args /* Argument tuple or dictionary */ PyObject *args /* Argument tuple or dictionary */
); );
/* 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. */
extern DL_IMPORT(int) PyUnicode_Contains(
PyObject *container, /* Container string */
PyObject *element /* Element string */
);
/* === Characters Type APIs =============================================== */ /* === Characters Type APIs =============================================== */
/* These should not be used directly. Use the Py_UNICODE_IS* and /* These should not be used directly. Use the Py_UNICODE_IS* and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment