[Python-checkins] CVS: python/dist/src/Include unicodeobject.h,2.1,2.2

Guido van Rossum guido@cnri.reston.va.us
2000年3月13日 18:22:27 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Include
In directory eric:/home/guido/hp/mal/py-patched/Include
Modified Files:
	unicodeobject.h 
Log Message:
Marc-Andre Lemburg: add declaration for PyUnicode_Contains().
Index: unicodeobject.h
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Include/unicodeobject.h,v
retrieving revision 2.1
retrieving revision 2.2
diff -C2 -r2.1 -r2.2
*** unicodeobject.h	2000年03月10日 22:33:05	2.1
--- unicodeobject.h	2000年03月13日 23:22:24	2.2
***************
*** 684,687 ****
--- 684,698 ----
 );
 
+ /* 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 =============================================== */
 

AltStyle によって変換されたページ (->オリジナル) /