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 | |
Fredrik Lundh | cfcea49 | 2000-09-25 08:07:06 +0000 | [diff] [blame] | 7 | Written by Marc-Andre Lemburg (mal@lemburg.com). |
| 8 | Modified for Python 2.0 by Fredrik Lundh (fredrik@pythonware.com) |
Guido van Rossum | 5bfc2eb | 2000-03-10 23:08:04 +0000 | [diff] [blame] | 9 | |
Fredrik Lundh | cfcea49 | 2000-09-25 08:07:06 +0000 | [diff] [blame] | 10 | Copyright (c) Corporation for National Research Initiatives. |
Guido van Rossum | 5bfc2eb | 2000-03-10 23:08:04 +0000 | [diff] [blame] | 11 | |
| 12 | ------------------------------------------------------------------------ */ |
| 13 | |
| 14 | /* --- Unicode database entry --------------------------------------------- */ |
| 15 | |
| 16 | typedef struct { |
| 17 | const unsigned char category; /* index into |
| 18 | _PyUnicode_CategoryNames */ |
| 19 | const unsigned char combining; /* combining class value 0 - 255 */ |
| 20 | const unsigned char bidirectional; /* index into |
| 21 | _PyUnicode_BidirectionalNames */ |
| 22 | const unsigned char mirrored; /* true if mirrored in bidir mode */ |
Guido van Rossum | 5bfc2eb | 2000-03-10 23:08:04 +0000 | [diff] [blame] | 23 | } _PyUnicode_DatabaseRecord; |
| 24 | |
| 25 | /* --- Unicode category names --------------------------------------------- */ |
| 26 | |
Fredrik Lundh | cfcea49 | 2000-09-25 08:07:06 +0000 | [diff] [blame] | 27 | extern const char *_PyUnicode_CategoryNames[]; |
| 28 | extern const char *_PyUnicode_BidirectionalNames[]; |
Guido van Rossum | 5bfc2eb | 2000-03-10 23:08:04 +0000 | [diff] [blame] | 29 | |
| 30 | /* --- Unicode Database --------------------------------------------------- */ |
| 31 | |
Fredrik Lundh | eedb576 | 2000-09-24 21:28:28 +0000 | [diff] [blame] | 32 | extern const _PyUnicode_DatabaseRecord *_PyUnicode_Database_GetRecord(int ch); |
Fredrik Lundh | cfcea49 | 2000-09-25 08:07:06 +0000 | [diff] [blame] | 33 | extern const char *_PyUnicode_Database_GetDecomposition(int ch); |