20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
@implementation TestsAppDelegate (OFLocaleTests)
- (void)localeTests
{
void *pool = objc_autoreleasePoolPush();
[OFStdOut setForegroundColor: [OFColor lime]];
[OFStdOut writeFormat: @"[OFLocale] Language: %@\n",
[OFLocale language]];
[OFStdOut writeFormat: @"[OFLocale] Territory: %@\n",
[OFLocale territory]];
[OFStdOut writeFormat: @"[OFLocale] Encoding: %@\n",
OFStringEncodingName([OFLocale encoding])];
[OFStdOut writeFormat: @"[OFLocale] Decimal point: %@\n",
[OFLocale decimalPoint]];
objc_autoreleasePoolPop(pool);
}
@end
|
|
|
|
|
|
|
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
@implementation TestsAppDelegate (OFLocaleTests)
- (void)localeTests
{
void *pool = objc_autoreleasePoolPush();
[OFStdOut setForegroundColor: [OFColor lime]];
[OFStdOut writeFormat: @"[OFLocale] Language code: %@\n",
[OFLocale languageCode]];
[OFStdOut writeFormat: @"[OFLocale] Country code: %@\n",
[OFLocale countryCode]];
[OFStdOut writeFormat: @"[OFLocale] Encoding: %@\n",
OFStringEncodingName([OFLocale encoding])];
[OFStdOut writeFormat: @"[OFLocale] Decimal separator: %@\n",
[OFLocale decimalSeparator]];
objc_autoreleasePoolPop(pool);
}
@end
|