summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-03-13 23:22:24 (GMT)
committerGuido van Rossum <guido@python.org>2000-03-13 23:22:24 (GMT)
commitd0d366b5e6505b485ea3a56ddac55be72aa9af14 (patch)
treef39141b4f379497104b4331c7d8040a76b0109fc
parentd4d26842407b478c63d40bb77d83ca7f2dd68de8 (diff)
downloadcpython-d0d366b5e6505b485ea3a56ddac55be72aa9af14.zip
cpython-d0d366b5e6505b485ea3a56ddac55be72aa9af14.tar.gz
cpython-d0d366b5e6505b485ea3a56ddac55be72aa9af14.tar.bz2
Marc-Andre Lemburg: add declaration for PyUnicode_Contains().
-rw-r--r--Include/unicodeobject.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 358c18a..37f2b0d 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