458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
|
uint32_t territory;
size_t length;
territory =
OF_BSWAP32_IF_LE(locale->loc_CountryCode);
for (length = 0; length < 4; length++)
if (((char *)territory)[length] == 0)
break;
_territory = [[OFString alloc]
initWithCString: territory
encoding: _encoding
length: length];
} @finally {
CloseLocale(locale);
}
}
|
|
|
|
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
|
uint32_t territory;
size_t length;
territory =
OF_BSWAP32_IF_LE(locale->loc_CountryCode);
for (length = 0; length < 4; length++)
if (((char *)&territory)[length] == 0)
break;
_territory = [[OFString alloc]
initWithCString: (char *)&territory
encoding: _encoding
length: length];
} @finally {
CloseLocale(locale);
}
}
|