Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d0d366b

Browse files
committed
Marc-Andre Lemburg: add declaration for PyUnicode_Contains().
1 parent d4d2684 commit d0d366b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Include/unicodeobject.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,17 @@ extern DL_IMPORT(PyObject *) PyUnicode_Format(
683683
PyObject *args /* Argument tuple or dictionary */
684684
);
685685

686+
/* Checks whether element is contained in container and return 1/0
687+
accordingly.
688+
689+
element has to coerce to an one element Unicode string. -1 is
690+
returned in case of an error. */
691+
692+
extern DL_IMPORT(int) PyUnicode_Contains(
693+
PyObject *container, /* Container string */
694+
PyObject *element /* Element string */
695+
);
696+
686697
/* === Characters Type APIs =============================================== */
687698

688699
/* These should not be used directly. Use the Py_UNICODE_IS* and

0 commit comments

Comments
 (0)