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

Martin v. L?wis loewis@users.sourceforge.net
Tue, 26 Jun 2001 23:28:58 -0700


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

Modified Files:
	unicodeobject.h 
Log Message:
Encode surrogates in UTF-8 even for a wide Py_UNICODE.
Implement sys.maxunicode.
Explicitly wrap around upper/lower computations for wide Py_UNICODE.
When decoding large characters with UTF-8, represent expected test
results using the \U notation.


Index: unicodeobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/unicodeobject.h,v
retrieving revision 2.24
retrieving revision 2.25
diff -C2 -r2.24 -r2.25
*** unicodeobject.h	2001/06/26 22:59:49	2.24
--- unicodeobject.h	2001/06/27 06:28:56	2.25
***************
*** 275,278 ****
--- 275,281 ----
      );
  
+ /* Get the maximum ordinal for a Unicode character. */
+ extern DL_IMPORT(Py_UNICODE) PyUnicode_GetMax(void);
+ 
  /* Resize an already allocated Unicode object to the new size length.