mirror of
https://github.com/python/cpython.git
synced 2025-11-24 12:20:42 +00:00
unicode database compression, step 2:
- fixed attributions - moved decomposition data to a separate table, in preparation for step 3 (which won't happen before 2.0 final, promise!) - use relative paths in the generator script I have a lot more stuff in the works for 2.1, but let's leave that for another day...
This commit is contained in:
parent
2101348830
commit
cfcea49218
5 changed files with 4613 additions and 4330 deletions
|
|
@ -4,9 +4,10 @@
|
|||
|
||||
Data was extracted from the Unicode 3.0 UnicodeData.txt file.
|
||||
|
||||
Written by Marc-Andre Lemburg (mal@lemburg.com).
|
||||
Written by Marc-Andre Lemburg (mal@lemburg.com).
|
||||
Modified for Python 2.0 by Fredrik Lundh (fredrik@pythonware.com)
|
||||
|
||||
Copyright (c) Corporation for National Research Initiatives.
|
||||
Copyright (c) Corporation for National Research Initiatives.
|
||||
|
||||
------------------------------------------------------------------------ */
|
||||
|
||||
|
|
@ -19,15 +20,14 @@ typedef struct {
|
|||
const unsigned char bidirectional; /* index into
|
||||
_PyUnicode_BidirectionalNames */
|
||||
const unsigned char mirrored; /* true if mirrored in bidir mode */
|
||||
const char *decomposition; /* pointer to the decomposition
|
||||
string or NULL */
|
||||
} _PyUnicode_DatabaseRecord;
|
||||
|
||||
/* --- Unicode category names --------------------------------------------- */
|
||||
|
||||
extern const char *_PyUnicode_CategoryNames[32];
|
||||
extern const char *_PyUnicode_BidirectionalNames[21];
|
||||
extern const char *_PyUnicode_CategoryNames[];
|
||||
extern const char *_PyUnicode_BidirectionalNames[];
|
||||
|
||||
/* --- Unicode Database --------------------------------------------------- */
|
||||
|
||||
extern const _PyUnicode_DatabaseRecord *_PyUnicode_Database_GetRecord(int ch);
|
||||
extern const char *_PyUnicode_Database_GetDecomposition(int ch);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue