Guido van Rossum | 5bfc2eb | 2000-03-10 23:08:04 +0000 | [diff] [blame] | 1 | /* ------------------------------------------------------------------------ |
| 2 | |
| 3 | unicodedatabase -- The Unicode 3.0 data base. |
| 4 | |
| 5 | Data was extracted from the Unicode 3.0 UnicodeData.txt file. |
| 6 | |
| 7 | Written by Marc-Andre Lemburg (mal@lemburg.com). |
| 8 | |
Guido van Rossum | 16b1ad9 | 2000-08-03 16:24:25 +0000 | [diff] [blame] | 9 | Copyright (c) Corporation for National Research Initiatives. |
Guido van Rossum | 5bfc2eb | 2000-03-10 23:08:04 +0000 | [diff] [blame] | 10 | |
| 11 | ------------------------------------------------------------------------ */ |
| 12 | |
| 13 | /* --- Unicode database entry --------------------------------------------- */ |
| 14 | |
| 15 | typedef struct { |
| 16 | const unsigned char category; /* index into |
| 17 | _PyUnicode_CategoryNames */ |
| 18 | const unsigned char combining; /* combining class value 0 - 255 */ |
| 19 | const unsigned char bidirectional; /* index into |
| 20 | _PyUnicode_BidirectionalNames */ |
| 21 | const unsigned char mirrored; /* true if mirrored in bidir mode */ |
| 22 | const char *decomposition; /* pointer to the decomposition |
| 23 | string or NULL */ |
| 24 | } _PyUnicode_DatabaseRecord; |
| 25 | |
| 26 | /* --- Unicode category names --------------------------------------------- */ |
| 27 | |
| 28 | extern const char *_PyUnicode_CategoryNames[32]; |
| 29 | extern const char *_PyUnicode_BidirectionalNames[21]; |
| 30 | |
| 31 | /* --- Unicode Database --------------------------------------------------- */ |
| 32 | |
Guido van Rossum | 8a16054 | 2000-03-31 17:26:12 +0000 | [diff] [blame] | 33 | extern const _PyUnicode_DatabaseRecord *_PyUnicode_Database[16]; |