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

M.-A. Lemburg lemburg@users.sourceforge.net
Thu, 20 Sep 2001 03:35:47 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv17012/Include

Modified Files:
	unicodeobject.h 
Log Message:
Patch #435971: UTF-7 codec by Brian Quinlan.



Index: unicodeobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/unicodeobject.h,v
retrieving revision 2.34
retrieving revision 2.35
diff -C2 -d -r2.34 -r2.35
*** unicodeobject.h	2001/09/19 11:21:03	2.34
--- unicodeobject.h	2001/09/20 10:35:45	2.35
***************
*** 608,611 ****
--- 608,629 ----
      );
  
+ /* --- UTF-7 Codecs ------------------------------------------------------- */
+ 
+ extern DL_IMPORT(PyObject*) PyUnicode_DecodeUTF7(
+     const char *string, 	/* UTF-7 encoded string */
+     int length,	 		/* size of string */
+     const char *errors		/* error handling */
+     );
+ 
+ extern DL_IMPORT(PyObject*) PyUnicode_EncodeUTF7(
+     const Py_UNICODE *data, 	/* Unicode char buffer */
+     int length,	 		/* number of Py_UNICODE chars to encode */
+     int encodeSetO,             /* force the encoder to encode characters in
+                                    Set O, as described in RFC2152 */
+     int encodeWhiteSpace,       /* force the encoder to encode space, tab,
+                                    carriage return and linefeed characters */
+     const char *errors		/* error handling */
+     );
+ 
  /* --- UTF-8 Codecs ------------------------------------------------------- */