ObjFW  Diff

Differences From Artifact [049410036d]:

To Artifact [ec2660fdd7]:


330
331
332
333
334
335
336

337
338
339
340
341
342
343

	while (*string++ != 0)
		length++;

	return length;
}


static OFString *
decomposedString(OFString *self, const char *const *const *table, size_t size)
{
	OFMutableString *ret = [OFMutableString string];
	void *pool = objc_autoreleasePoolPush();
	const of_unichar_t *characters = [self characters];
	size_t length = [self length];







>







330
331
332
333
334
335
336
337
338
339
340
341
342
343
344

	while (*string++ != 0)
		length++;

	return length;
}

#ifdef OF_HAVE_UNICODE_TABLES
static OFString *
decomposedString(OFString *self, const char *const *const *table, size_t size)
{
	OFMutableString *ret = [OFMutableString string];
	void *pool = objc_autoreleasePoolPush();
	const of_unichar_t *characters = [self characters];
	size_t length = [self length];
360
361
362
363
364
365
366

367
368
369
370
371
372
373
				       length: 1];
	}

	objc_autoreleasePoolPop(pool);

	return ret;
}


@implementation OFString_placeholder
- (instancetype)init
{
	return (id)[[OFString_UTF8 alloc] init];
}








>







361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
				       length: 1];
	}

	objc_autoreleasePoolPop(pool);

	return ret;
}
#endif

@implementation OFString_placeholder
- (instancetype)init
{
	return (id)[[OFString_UTF8 alloc] init];
}