291
292
293
294
295
296
297
298
299
300
301
302
303
304
|
return self;
}
- removeCharactersFromIndex: (size_t)start
toIndex: (size_t)end
{
if (start > end)
@throw [OFInvalidArgumentException newWithClass: isa
selector: _cmd];
if (end > length)
@throw [OFOutOfRangeException newWithClass: isa];
|
>
>
>
|
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
|
return self;
}
- removeCharactersFromIndex: (size_t)start
toIndex: (size_t)end
{
start = of_string_index_to_position(string, start, length);
end = of_string_index_to_position(string, end, length);
if (start > end)
@throw [OFInvalidArgumentException newWithClass: isa
selector: _cmd];
if (end > length)
@throw [OFOutOfRangeException newWithClass: isa];
|