mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Update to Unicode 3.2 database.
This commit is contained in:
parent
ecbb0eaa43
commit
9def6a3a77
8 changed files with 14036 additions and 9469 deletions
|
@ -36,7 +36,7 @@ _getrecord(PyUnicodeObject* v)
|
|||
|
||||
code = (int) *PyUnicode_AS_UNICODE(v);
|
||||
|
||||
if (code < 0 || code >= 65536)
|
||||
if (code < 0 || code >= 0x110000)
|
||||
index = 0;
|
||||
else {
|
||||
index = index1[(code>>SHIFT)];
|
||||
|
@ -219,7 +219,7 @@ unicodedata_decomposition(PyObject *self, PyObject *args)
|
|||
|
||||
code = (int) *PyUnicode_AS_UNICODE(v);
|
||||
|
||||
if (code < 0 || code >= 65536)
|
||||
if (code < 0 || code >= 0x110000)
|
||||
index = 0;
|
||||
else {
|
||||
index = decomp_index1[(code>>DECOMP_SHIFT)];
|
||||
|
@ -284,7 +284,7 @@ _getucname(Py_UCS4 code, char* buffer, int buflen)
|
|||
int word;
|
||||
unsigned char* w;
|
||||
|
||||
if (code >= 65536)
|
||||
if (code >= 0x110000)
|
||||
return 0;
|
||||
|
||||
/* get offset into phrasebook */
|
||||
|
|
File diff suppressed because it is too large
Load diff
17739
Modules/unicodename_db.h
17739
Modules/unicodename_db.h
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue