25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#import "OFHTTPRequest.h"
#import "OFHTTPResponse.h"
#import "OFHTTPClient.h"
#import "OFFile.h"
#import "OFStdIOStream.h"
#import "autorelease.h"
#import "TableGenerator.h"
#import "copyright.h"
#define UNICODE_DATA_URL \
@"http://www.unicode.org/Public/UNIDATA/UnicodeData.txt"
#define CASE_FOLDING_URL \
|
>
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#import "OFHTTPRequest.h"
#import "OFHTTPResponse.h"
#import "OFHTTPClient.h"
#import "OFFile.h"
#import "OFStdIOStream.h"
#import "autorelease.h"
#import "macros.h"
#import "TableGenerator.h"
#import "copyright.h"
#define UNICODE_DATA_URL \
@"http://www.unicode.org/Public/UNIDATA/UnicodeData.txt"
#define CASE_FOLDING_URL \
|
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
- (void)applicationDidFinishLaunching
{
[self parseUnicodeData];
[self parseCaseFolding];
[of_stdout writeString: @"Writing files..."];
[self writeTablesToFile: @"../src/unicode.m"];
[self writeHeaderToFile: @"../src/unicode.h"];
[of_stdout writeLine: @" done"];
[OFApplication terminate];
}
- (void)parseUnicodeData
|
|
>
|
>
|
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
- (void)applicationDidFinishLaunching
{
[self parseUnicodeData];
[self parseCaseFolding];
[of_stdout writeString: @"Writing files..."];
[self writeTablesToFile: [OFString stringWithPath:
OF_PATH_PARENT_DIRECTORY, @"src", @"unicode.m", nil]];
[self writeHeaderToFile: [OFString stringWithPath:
OF_PATH_PARENT_DIRECTORY, @"src", @"unicode.h", nil]];
[of_stdout writeLine: @" done"];
[OFApplication terminate];
}
- (void)parseUnicodeData
|