blob: 1c92e040306c9e77ba4c0952453632c46ba5c5ce [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
Fredrik Lundhcfcea492000-09-25 08:07:06 +00007 Written by Marc-Andre Lemburg (mal@lemburg.com).
8 Modified for Python 2.0 by Fredrik Lundh (fredrik@pythonware.com)
Guido van Rossum5bfc2eb2000-03-10 23:08:04 +00009
Fredrik Lundhcfcea492000-09-25 08:07:06 +000010 Copyright (c) Corporation for National Research Initiatives.
Guido van Rossum5bfc2eb2000-03-10 23:08:04 +000011
12 ------------------------------------------------------------------------ */
13
14/* --- Unicode database entry --------------------------------------------- */
15
16typedef 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 Rossum5bfc2eb2000-03-10 23:08:04 +000023} _PyUnicode_DatabaseRecord;
24
25/* --- Unicode category names --------------------------------------------- */
26
Fredrik Lundhcfcea492000-09-25 08:07:06 +000027extern const char *_PyUnicode_CategoryNames[];
28extern const char *_PyUnicode_BidirectionalNames[];
Guido van Rossum5bfc2eb2000-03-10 23:08:04 +000029
30/* --- Unicode Database --------------------------------------------------- */
31
Fredrik Lundheedb5762000-09-24 21:28:28 +000032extern const _PyUnicode_DatabaseRecord *_PyUnicode_Database_GetRecord(int ch);
Fredrik Lundhcfcea492000-09-25 08:07:06 +000033extern const char *_PyUnicode_Database_GetDecomposition(int ch);