diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-06-27 06:28:56 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-06-27 06:28:56 (GMT) |
commit | ce9b5a55e164f1128756478b6a2bb548abec1980 (patch) | |
tree | 0b616e0fae5ec7204f723235d196ae2b7c124d78 /Include/unicodeobject.h | |
parent | 236d8b79748fec890d57ad0dd99ea3f1c3ba57df (diff) | |
download | cpython-ce9b5a55e164f1128756478b6a2bb548abec1980.zip cpython-ce9b5a55e164f1128756478b6a2bb548abec1980.tar.gz cpython-ce9b5a55e164f1128756478b6a2bb548abec1980.tar.bz2 |
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.
Diffstat (limited to 'Include/unicodeobject.h')
-rw-r--r-- | Include/unicodeobject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 87e01af..d89537f 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -274,6 +274,9 @@ extern DL_IMPORT(int) PyUnicode_GetSize( PyObject *unicode /* Unicode object */ ); +/* 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. *unicode is modified to point to the new (resized) object and 0 |