30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
- (instancetype)initWithCharactersInString: (OFString *)string
{
self = [super init];
@try {
void *pool = objc_autoreleasePoolPush();
const of_unichar_t *characters = [string characters];
size_t length = [string length];
for (size_t i = 0; i < length; i++) {
of_unichar_t c = characters[i];
if (c / 8 >= _size) {
size_t newSize;
|
|
|
|
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
- (instancetype)initWithCharactersInString: (OFString *)string
{
self = [super init];
@try {
void *pool = objc_autoreleasePoolPush();
const of_unichar_t *characters = string.characters;
size_t length = string.length;
for (size_t i = 0; i < length; i++) {
of_unichar_t c = characters[i];
if (c / 8 >= _size) {
size_t newSize;
|