10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
*
* Alternatively, it may be distributed under the terms of the GNU General
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFString.h"
@interface TableGenerator: OFObject
{
of_unichar_t uppercaseTable[0x110000];
of_unichar_t lowercaseTable[0x110000];
of_unichar_t titlecaseTable[0x110000];
of_unichar_t casefoldingTable[0x110000];
BOOL uppercaseTableUsed[0x1100];
BOOL lowercaseTableUsed[0x1100];
char titlecaseTableUsed[0x1100];
char casefoldingTableUsed[0x1100];
size_t uppercaseTableSize;
size_t lowercaseTableSize;
size_t titlecaseTableSize;
size_t casefoldingTableSize;
}
- (void)readUnicodeDataFileAtPath: (OFString*)path;
- (void)readCaseFoldingFileAtPath: (OFString*)path;
- (void)writeTablesToFileAtPath: (OFString*)path;
- (void)writeHeaderToFileAtPath: (OFString*)path;
@end
|
|
>
>
>
>
|
|
|
|
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
*
* Alternatively, it may be distributed under the terms of the GNU General
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFObject.h"
@class OFString;
@interface TableGenerator: OFObject
{
OFString *unicodeData, *caseFolding;
of_unichar_t uppercaseTable[0x110000];
of_unichar_t lowercaseTable[0x110000];
of_unichar_t titlecaseTable[0x110000];
of_unichar_t casefoldingTable[0x110000];
BOOL uppercaseTableUsed[0x1100];
BOOL lowercaseTableUsed[0x1100];
char titlecaseTableUsed[0x1100];
char casefoldingTableUsed[0x1100];
size_t uppercaseTableSize;
size_t lowercaseTableSize;
size_t titlecaseTableSize;
size_t casefoldingTableSize;
}
- (void)downloadFiles;
- (void)parseUnicodeData;
- (void)parseCaseFolding;
- (void)writeTablesToFile: (OFString*)path;
- (void)writeHeaderToFile: (OFString*)path;
@end
|