2000-03-11 00:08:04 +01:00
|
|
|
/* ------------------------------------------------------------------------
|
|
|
|
|
|
|
|
unicodedatabase -- The Unicode 3.0 data base.
|
|
|
|
|
|
|
|
Data was extracted from the Unicode 3.0 UnicodeData.txt file.
|
|
|
|
|
2000-09-25 10:07:06 +02:00
|
|
|
Written by Marc-Andre Lemburg (mal@lemburg.com).
|
|
|
|
Modified for Python 2.0 by Fredrik Lundh (fredrik@pythonware.com)
|
2000-03-11 00:08:04 +01:00
|
|
|
|
2000-09-25 10:07:06 +02:00
|
|
|
Copyright (c) Corporation for National Research Initiatives.
|
2000-03-11 00:08:04 +01:00
|
|
|
|
|
|
|
------------------------------------------------------------------------ */
|
|
|
|
|
|
|
|
/* --- 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 */
|
|
|
|
} _PyUnicode_DatabaseRecord;
|
|
|
|
|
|
|
|
/* --- Unicode category names --------------------------------------------- */
|
|
|
|
|
2000-09-25 10:07:06 +02:00
|
|
|
extern const char *_PyUnicode_CategoryNames[];
|
|
|
|
extern const char *_PyUnicode_BidirectionalNames[];
|
2000-03-11 00:08:04 +01:00
|
|
|
|
|
|
|
/* --- Unicode Database --------------------------------------------------- */
|
|
|
|
|
2000-09-24 23:28:28 +02:00
|
|
|
extern const _PyUnicode_DatabaseRecord *_PyUnicode_Database_GetRecord(int ch);
|
2000-09-25 10:07:06 +02:00
|
|
|
extern const char *_PyUnicode_Database_GetDecomposition(int ch);
|