From d0d366b5e6505b485ea3a56ddac55be72aa9af14 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 13 Mar 2000 23:22:24 +0000 Subject: [PATCH] Marc-Andre Lemburg: add declaration for PyUnicode_Contains(). --- Include/unicodeobject.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 358c18af1ca..37f2b0d3f47 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -683,6 +683,17 @@ extern DL_IMPORT(PyObject *) PyUnicode_Format( 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 =============================================== */ /* These should not be used directly. Use the Py_UNICODE_IS* and