Differences From Artifact [56650151d7]:
- File generators/TableGenerator.h — part of check-in [be4c0f34c5] at 2010-01-08 15:26:34 on branch trunk — Generate and use smaller Unicode tables. (user: js, size: 796) [annotate] [blame] [check-ins using]
To Artifact [2450591494]:
- File
generators/TableGenerator.h
— part of check-in
[13f2a20288]
at
2010-01-30 18:29:28
on branch trunk
— Change how the Unicode table is stored.
The recent optimization had a bug in the range check and thus did not
notice that an int16_t is not enough to store the difference, thus
leading to broken results. This reverts it to the old way the Unicode
table was stored. (user: js, size: 806) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
9 10 11 12 13 14 15 | * the packaging of this file. */ #import "OFString.h" @interface TableGenerator: OFObject { | | | | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | * the packaging of this file. */ #import "OFString.h" @interface TableGenerator: OFObject { of_unichar_t upper[0x110000]; of_unichar_t lower[0x110000]; of_unichar_t casefolding[0x110000]; BOOL upper_table_used[0x1100]; BOOL lower_table_used[0x1100]; char casefolding_table_used[0x1100]; size_t upper_size; size_t lower_size; size_t casefolding_size; } - (void)readUnicodeDataFile: (OFString*)path; - (void)readCaseFoldingFile: (OFString*)path; - (void)writeTablesToFile: (OFString*)file; - (void)writeHeaderToFile: (OFString*)file; @end |