mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Marc-Andre-Lemburg: The Unicode Database.
This commit is contained in:
parent
2d0f5f932a
commit
5bfc2eb697
2 changed files with 65663 additions and 0 deletions
65630
Modules/unicodedatabase.c
Normal file
65630
Modules/unicodedatabase.c
Normal file
File diff suppressed because it is too large
Load diff
33
Modules/unicodedatabase.h
Normal file
33
Modules/unicodedatabase.h
Normal file
|
@ -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];
|
Loading…
Add table
Add a link
Reference in a new issue