summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-03-13 23:22:24 +0000
committerGuido van Rossum <guido@python.org>2000-03-13 23:22:24 +0000
commite2a6eaaae487579ebbf47c4e361f7cab4815c4a0 (patch)
tree0797ade8562db15f11541472f902740e2b3e045f /Include
parent0089de4320a75bf2d68f53fcec2ef4a008720296 (diff)
downloadcpython-e2a6eaaae487579ebbf47c4e361f7cab4815c4a0.tar.gz
Marc-Andre Lemburg: add declaration for PyUnicode_Contains().
Diffstat (limited to 'Include')
-rw-r--r--Include/unicodeobject.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 358c18af1c..37f2b0d3f4 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