@@ -21,20 +21,18 @@ @interface TableGenerator: OFObject { of_unichar_t upper[0x110000]; of_unichar_t lower[0x110000]; - of_unichar_t title[0x110000]; } - (void)fillTablesFromFile: (OFString*)file; - (void)writeTable: (of_unichar_t*)table withName: (OFString*)name toFile: (OFString*)file; - (void)writeUpperTableToFile: (OFString*)file; - (void)writeLowerTableToFile: (OFString*)file; -- (void)writeTitlecaseTableToFile: (OFString*)file; @end @implementation TableGenerator - (void)fillTablesFromFile: (OFString*)file; { @@ -57,11 +55,10 @@ splitted_carray = [splitted cArray]; codep = [splitted_carray[0] hexadecimalValueAsInteger]; upper[codep] = [splitted_carray[12] hexadecimalValueAsInteger]; lower[codep] = [splitted_carray[13] hexadecimalValueAsInteger]; - title[codep] = [splitted_carray[14] hexadecimalValueAsInteger]; [pool2 releaseObjects]; } [pool release]; @@ -169,17 +166,10 @@ { return [self writeTable: lower withName: @"lower" toFile: file]; } - -- (void)writeTitlecaseTableToFile: (OFString*)file -{ - return [self writeTable: title - withName: @"titlecase" - toFile: file]; -} @end int main() { @@ -187,11 +177,10 @@ TableGenerator *tgen = [[[TableGenerator alloc] init] autorelease]; [tgen fillTablesFromFile: @"UnicodeData.txt"]; [tgen writeUpperTableToFile: @"../src/unicode_upper.m"]; [tgen writeLowerTableToFile: @"../src/unicode_lower.m"]; - [tgen writeTitlecaseTableToFile: @"../src/unicode_titlecase.m"]; [pool release]; return 0; }