blob: b4bc1c6d0d14f1d9167ecc5788c9567ac0d2f177 [file] [log] [blame]
Guido van Rossum5bfc2eb2000-03-10 23:08:04 +00001/* ------------------------------------------------------------------------
2
3 unicodedatabase -- The Unicode 3.0 data base.
4
5 Data was extracted from the Unicode 3.0 UnicodeData.txt file.
6
7Written by Marc-Andre Lemburg (mal@lemburg.com).
8
Guido van Rossum16b1ad92000-08-03 16:24:25 +00009Copyright (c) Corporation for National Research Initiatives.
Guido van Rossum5bfc2eb2000-03-10 23:08:04 +000010
11 ------------------------------------------------------------------------ */
12
13/* --- Unicode database entry --------------------------------------------- */
14
15typedef 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
28extern const char *_PyUnicode_CategoryNames[32];
29extern const char *_PyUnicode_BidirectionalNames[21];
30
31/* --- Unicode Database --------------------------------------------------- */
32
Guido van Rossum8a160542000-03-31 17:26:12 +000033extern const _PyUnicode_DatabaseRecord *_PyUnicode_Database[16];