mirror of
https://github.com/python/cpython.git
synced 2024-11-24 08:52:25 +01:00
cfcea49218
- 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...
34 lines
1.3 KiB
C
34 lines
1.3 KiB
C
/* ------------------------------------------------------------------------
|
|
|
|
unicodedatabase -- The Unicode 3.0 data base.
|
|
|
|
Data was extracted from the Unicode 3.0 UnicodeData.txt file.
|
|
|
|
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.
|
|
|
|
------------------------------------------------------------------------ */
|
|
|
|
/* --- Unicode database entry --------------------------------------------- */
|
|
|
|
typedef struct {
|
|
const unsigned char category; /* index into
|
|
_PyUnicode_CategoryNames */
|
|
const unsigned char combining; /* combining class value 0 - 255 */
|
|
const unsigned char bidirectional; /* index into
|
|
_PyUnicode_BidirectionalNames */
|
|
const unsigned char mirrored; /* true if mirrored in bidir mode */
|
|
} _PyUnicode_DatabaseRecord;
|
|
|
|
/* --- Unicode category names --------------------------------------------- */
|
|
|
|
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);
|