summaryrefslogtreecommitdiffstats
path: root/Modules/unicodedatabase.h
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-09-25 08:07:06 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2000-09-25 08:07:06 (GMT)
commitcfcea4921865a922744dc168dde5eaccde8fe50b (patch)
tree9f7e75ab875cf3d9115cbef22ee68dd2cb562fda /Modules/unicodedatabase.h
parent2101348830ff0d65cebd4caf886011f45bcc7618 (diff)
downloadcpython-cfcea4921865a922744dc168dde5eaccde8fe50b.zip
cpython-cfcea4921865a922744dc168dde5eaccde8fe50b.tar.gz
cpython-cfcea4921865a922744dc168dde5eaccde8fe50b.tar.bz2
unicode database compression, step 2:
- fixed attributions - moved decomposition data to a separate table, in preparation for step 3 (which won't happen before 2.0 final, promise!) - use relative paths in the generator script I have a lot more stuff in the works for 2.1, but let's leave that for another day...
Diffstat (limited to 'Modules/unicodedatabase.h')
-rw-r--r--Modules/unicodedatabase.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/unicodedatabase.h b/Modules/unicodedatabase.h
index adba9ca..1c92e04 100644
--- a/Modules/unicodedatabase.h
+++ b/Modules/unicodedatabase.h
@@ -4,9 +4,10 @@
Data was extracted from the Unicode 3.0 UnicodeData.txt file.
-Written by Marc-Andre Lemburg (mal@lemburg.com).
+ Written by Marc-Andre Lemburg (mal@lemburg.com).
+ Modified for Python 2.0 by Fredrik Lundh (fredrik@pythonware.com)
-Copyright (c) Corporation for National Research Initiatives.
+ Copyright (c) Corporation for National Research Initiatives.
------------------------------------------------------------------------ */
@@ -19,15 +20,14 @@ typedef struct {
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];
+extern const char *_PyUnicode_CategoryNames[];
+extern const char *_PyUnicode_BidirectionalNames[];
/* --- Unicode Database --------------------------------------------------- */
extern const _PyUnicode_DatabaseRecord *_PyUnicode_Database_GetRecord(int ch);
+extern const char *_PyUnicode_Database_GetDecomposition(int ch);