78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
[ret deleteCharactersInRange: of_range(length - cut, cut)];
}
if (unescape)
return [ret stringByXMLUnescapingWithDelegate: delegate];
ret->isa = [OFString class];
return ret;
}
static OFString*
namespace_for_prefix(OFString *prefix, OFArray *namespaces)
{
OFDictionary **cArray = [namespaces cArray];
|
>
|
|
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];
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
|
pool = [[OFAutoreleasePool alloc] init];
cacheString = [OFMutableString stringWithCString: [cache cArray]
length: [cache count]];
[cacheString deleteEnclosingWhitespaces];
/* Prevent a useless copy later */
cacheString->isa = [OFString class];
cacheCString = [cacheString cString];
cacheLength = [cacheString cStringLength];
if ((tmp = memchr(cacheCString, ':', cacheLength)) != NULL) {
attributeName = [[OFString alloc]
initWithCString: tmp + 1
|
|
|
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 makeImmutable];
cacheCString = [cacheString cString];
cacheLength = [cacheString cStringLength];
if ((tmp = memchr(cacheCString, ':', cacheLength)) != NULL) {
attributeName = [[OFString alloc]
initWithCString: tmp + 1
|