ObjFW  Diff

Differences From Artifact [a92b6c9809]:

To Artifact [e1a9a7f1bc]:


78
79
80
81
82
83
84

85

86
87
88
89
90
91
92
78
79
80
81
82
83
84
85

86
87
88
89
90
91
92
93







+
-
+








		[ret deleteCharactersInRange: of_range(length - cut, cut)];
	}

	if (unescape)
		return [ret stringByXMLUnescapingWithDelegate: delegate];

	[ret makeImmutable];
	ret->isa = [OFString class];

	return ret;
}

static OFString*
namespace_for_prefix(OFString *prefix, OFArray *namespaces)
{
	OFDictionary **cArray = [namespaces cArray];
790
791
792
793
794
795
796
797

798
799
800
801
802
803
804
791
792
793
794
795
796
797

798
799
800
801
802
803
804
805







-
+








	pool = [[OFAutoreleasePool alloc] init];

	cacheString = [OFMutableString stringWithCString: [cache cArray]
						  length: [cache count]];
	[cacheString deleteEnclosingWhitespaces];
	/* Prevent a useless copy later */
	cacheString->isa = [OFString class];
	[cacheString makeImmutable];

	cacheCString = [cacheString cString];
	cacheLength = [cacheString cStringLength];

	if ((tmp = memchr(cacheCString, ':', cacheLength)) != NULL) {
		attributeName = [[OFString alloc]
		    initWithCString: tmp + 1