292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
|
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
|
-
+
-
+
|
}
objc_autoreleasePoolPop(pool);
}
#endif
- (void)setCharacter: (of_unichar_t)character
atIndex: (size_t)index
atIndex: (size_t)idx
{
void *pool = objc_autoreleasePoolPush();
OFString *string;
string = [OFString stringWithCharacters: &character
length: 1];
[self replaceCharactersInRange: of_range(index, 1)
[self replaceCharactersInRange: of_range(idx, 1)
withString: string];
objc_autoreleasePoolPop(pool);
}
- (void)appendString: (OFString *)string
{
|
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
|
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
|
-
+
-
+
|
{
[self of_convertWithWordStartFunction: of_ascii_toupper
wordMiddleFunction: of_ascii_tolower];
}
#endif
- (void)insertString: (OFString *)string
atIndex: (size_t)index
atIndex: (size_t)idx
{
[self replaceCharactersInRange: of_range(index, 0)
[self replaceCharactersInRange: of_range(idx, 0)
withString: string];
}
- (void)deleteCharactersInRange: (of_range_t)range
{
[self replaceCharactersInRange: range
withString: @""];
|