ObjFW  Check-in [371086d5b9]

Overview
Comment:Fix table generator.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 371086d5b95c4db70183bffb96bcc07dab6652ca893c2c0b833b127a6f1ca7c5
User & Date: js on 2011-03-22 20:57:39
Other Links: manifest | tags
Context
2011-03-22
20:57
Rename remove to delete in OFMutableString. check-in: c9e2f6b548 user: js tags: trunk
20:57
Fix table generator. check-in: 371086d5b9 user: js tags: trunk
13:10
Move path methods from OFFile to OFString. check-in: 67e7d1e222 user: js tags: trunk
Changes

Modified generators/TableGenerator.m from [e8e2bf8e68] to [9897332316].

68
69
70
71
72
73
74
75
76
77





78
79
80
81
82
83
84
68
69
70
71
72
73
74



75
76
77
78
79
80
81
82
83
84
85
86







-
-
-
+
+
+
+
+







		if ([splitted count] != 15) {
			[of_stderr writeFormat: @"Invalid line: %s\n",
						[line cString]];
			[OFApplication terminateWithStatus: 1];
		}
		splitted_carray = [splitted cArray];

		codep = [splitted_carray[0] hexadecimalValue];
		upperTable[codep] = [splitted_carray[12] hexadecimalValue];
		lowerTable[codep] = [splitted_carray[13] hexadecimalValue];
		codep = (of_unichar_t)[splitted_carray[0] hexadecimalValue];
		upperTable[codep] =
		    (of_unichar_t)[splitted_carray[12] hexadecimalValue];
		lowerTable[codep] =
		    (of_unichar_t)[splitted_carray[13] hexadecimalValue];

		[pool2 releaseObjects];
	}

	[pool release];
}

106
107
108
109
110
111
112
113
114



115
116
117
118
119
120
121
108
109
110
111
112
113
114


115
116
117
118
119
120
121
122
123
124







-
-
+
+
+







		}
		splitted_carray = [splitted cArray];

		if (![splitted_carray[1] isEqual: @"S"] &&
		    ![splitted_carray[1] isEqual: @"C"])
			continue;

		codep = [splitted_carray[0] hexadecimalValue];
		casefoldingTable[codep] = [splitted_carray[2] hexadecimalValue];
		codep = (of_unichar_t)[splitted_carray[0] hexadecimalValue];
		casefoldingTable[codep] =
		    (of_unichar_t)[splitted_carray[2] hexadecimalValue];

		[pool2 releaseObjects];
	}

	[pool release];
}