diff options
author | Guido van Rossum <guido@python.org> | 2000-03-10 23:08:04 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-03-10 23:08:04 (GMT) |
commit | 5bfc2eb6972f35c3f81a08d93885e3c86089e22d (patch) | |
tree | 29237fe26db9946eeab16bc67d4f09c03886c793 /Modules/unicodedatabase.h | |
parent | 2d0f5f932a19fb2e5b69ca0232788838e2050ac2 (diff) | |
download | cpython-5bfc2eb6972f35c3f81a08d93885e3c86089e22d.zip cpython-5bfc2eb6972f35c3f81a08d93885e3c86089e22d.tar.gz cpython-5bfc2eb6972f35c3f81a08d93885e3c86089e22d.tar.bz2 |
Marc-Andre-Lemburg: The Unicode Database.
Diffstat (limited to 'Modules/unicodedatabase.h')
-rw-r--r-- | Modules/unicodedatabase.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Modules/unicodedatabase.h b/Modules/unicodedatabase.h new file mode 100644 index 0000000..504d7ad --- /dev/null +++ b/Modules/unicodedatabase.h @@ -0,0 +1,33 @@ +/* ------------------------------------------------------------------------ + + 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). + +(c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + + ------------------------------------------------------------------------ */ + +/* --- 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 */ + const char *decomposition; /* pointer to the decomposition + string or NULL */ +} _PyUnicode_DatabaseRecord; + +/* --- Unicode category names --------------------------------------------- */ + +extern const char *_PyUnicode_CategoryNames[32]; +extern const char *_PyUnicode_BidirectionalNames[21]; + +/* --- Unicode Database --------------------------------------------------- */ + +extern const _PyUnicode_DatabaseRecord _PyUnicode_Database[65536]; |