367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
|
append(ret, @selector(appendString:), [cArray[i] description]);
append(ret, @selector(appendString:), separator);
[pool2 releaseObjects];
}
append(ret, @selector(appendString:), [cArray[i] description]);
[pool release];
/*
* Class swizzle the array to be immutable. We declared the return type
* to be OFArray*, so it can't be modified anyway. But not swizzling it
* would create a real copy each time -[copy] is called.
*/
ret->isa = [OFString class];
return ret;
}
- (BOOL)isEqual: (id)object
{
/* FIXME: Optimize (for example, buffer of 16 for each) */
OFArray *otherArray;
|
>
>
<
<
<
<
<
<
|
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
|
append(ret, @selector(appendString:), [cArray[i] description]);
append(ret, @selector(appendString:), separator);
[pool2 releaseObjects];
}
append(ret, @selector(appendString:), [cArray[i] description]);
[ret makeImmutable];
[pool release];
return ret;
}
- (BOOL)isEqual: (id)object
{
/* FIXME: Optimize (for example, buffer of 16 for each) */
OFArray *otherArray;
|
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
|
} @catch (id e) {
[ret release];
@throw e;
}
[pool release];
[ret autorelease];
/*
* Class swizzle the array to be immutable. We declared the return type
* to be OFArray*, so it can't be modified anyway. But not swizzling it
* would create a real copy each time -[copy] is called.
*/
ret->isa = [OFString class];
return ret;
}
- (OFXMLElement*)XMLElementBySerializing
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFAutoreleasePool *pool2;
|
>
<
<
<
<
<
<
|
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
|
} @catch (id e) {
[ret release];
@throw e;
}
[pool release];
[ret makeImmutable];
[ret autorelease];
return ret;
}
- (OFXMLElement*)XMLElementBySerializing
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFAutoreleasePool *pool2;
|