ObjFW  Diff

Differences From Artifact [df7ab28870]:

To Artifact [3b96c919ea]:


591
592
593
594
595
596
597

598

599
600
601
602
603
604
605
591
592
593
594
595
596
597
598

599
600
601
602
603
604
605
606







+
-
+








	s->cStringLength = newCStringLength;
	s->length = newLength;
}

- (void)replaceOccurrencesOfString: (OFString*)string
			withString: (OFString*)replacement
			   options: (int)options
			   inRange: (of_range_t)range
			     range: (of_range_t)range
{
	const char *searchString = [string UTF8String];
	const char *replacementString = [replacement UTF8String];
	size_t searchLength = [string UTF8StringLength];
	size_t replacementLength = [replacement UTF8StringLength];
	size_t i, last, newCStringLength, newLength;
	char *newCString;