585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
|
isUTF8 = YES;
break;
case -1:;
@throw [OFInvalidEncodingException newWithClass: isa];
}
if ((string = strdup(string)) == NULL)
@throw [OFOutOfMemoryException newWithClass: isa
size: length +
1];
@try {
[self addMemoryToPool: string];
} @catch (id e) {
free(string);
@throw e;
}
|
|
>
|
<
|
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
|
isUTF8 = YES;
break;
case -1:;
@throw [OFInvalidEncodingException newWithClass: isa];
}
if ((string = strdup(string)) == NULL)
@throw [OFOutOfMemoryException
newWithClass: isa
requestedSize: length + 1];
@try {
[self addMemoryToPool: string];
} @catch (id e) {
free(string);
@throw e;
}
|