ObjFW  Diff

Differences From Artifact [f26dc131a5]:

To Artifact [f6529b2cf8]:


167
168
169
170
171
172
173
174
175
176


177
178
179
180
181
182
183
184
185
186
167
168
169
170
171
172
173



174
175



176
177
178
179
180
181
182







-
-
-
+
+
-
-
-








	if (inEntity)
		@throw [OFInvalidEncodingException newWithClass: isa];

	[ret appendCString: string + last
		withLength: i - last];

	/*
	 * Class swizzle the string to be immutable. We declared the return type
	 * to be OFString*, so it can't be modified anyway. But not swizzling it
	[ret makeImmutable];

	 * would create a real copy each time -[copy] is called.
	 */
	ret->isa = [OFString class];
	return ret;
}

#ifdef OF_HAVE_BLOCKS
- (OFString*)stringByXMLUnescapingWithBlock:
    (of_string_xml_unescaping_block_t)block
{
265
266
267
268
269
270
271
272
273
274


275
276
277
278
279
280
281
261
262
263
264
265
266
267



268
269



270
271
272
273







-
-
-
+
+
-
-
-





	if (inEntity)
		@throw [OFInvalidEncodingException newWithClass: isa];

	[ret appendCString: string + last
		withLength: i - last];

	/*
	 * Class swizzle the string to be immutable. We declared the return type
	 * to be OFString*, so it can't be modified anyway. But not swizzling it
	[ret makeImmutable];

	 * would create a real copy each time -[copy] is called.
	 */
	ret->isa = [OFString class];
	return ret;
}
#endif
@end