style
Monotone-Parent: d68ff2564716354de100688f82825ac0b5a5f2e9 Monotone-Revision: ab1a3804c938ec7df1f4f5209f7299df3e3042d1 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-07-16T14:19:34 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
bd8d65dc52
commit
aa24b42521
|
@ -67,17 +67,14 @@
|
||||||
|
|
||||||
cmpTag = [aTag uppercaseString];
|
cmpTag = [aTag uppercaseString];
|
||||||
|
|
||||||
matchingElements = [NSMutableArray new];
|
matchingElements = [NSMutableArray arrayWithCapacity: 16];
|
||||||
[matchingElements autorelease];
|
|
||||||
|
|
||||||
allElements = [self objectEnumerator];
|
allElements = [self objectEnumerator];
|
||||||
currentElement = [allElements nextObject];
|
while ((currentElement = [allElements nextObject]))
|
||||||
while (currentElement)
|
|
||||||
{
|
{
|
||||||
currentTag = [[currentElement tag] uppercaseString];
|
currentTag = [[currentElement tag] uppercaseString];
|
||||||
if ([currentTag isEqualToString: cmpTag])
|
if ([currentTag isEqualToString: cmpTag])
|
||||||
[matchingElements addObject: currentElement];
|
[matchingElements addObject: currentElement];
|
||||||
currentElement = [allElements nextObject];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return matchingElements;
|
return matchingElements;
|
||||||
|
@ -92,16 +89,12 @@
|
||||||
|
|
||||||
allElements = [self objectEnumerator];
|
allElements = [self objectEnumerator];
|
||||||
|
|
||||||
matchingElements = [NSMutableArray new];
|
matchingElements = [NSMutableArray arrayWithCapacity: 16];
|
||||||
[matchingElements autorelease];
|
|
||||||
currentElement = [allElements nextObject];
|
while ((currentElement = [allElements nextObject]))
|
||||||
while (currentElement)
|
if ([currentElement hasAttribute: anAttribute
|
||||||
{
|
havingValue: aValue])
|
||||||
if ([currentElement hasAttribute: anAttribute
|
[matchingElements addObject: currentElement];
|
||||||
havingValue: aValue])
|
|
||||||
[matchingElements addObject: currentElement];
|
|
||||||
currentElement = [allElements nextObject];
|
|
||||||
}
|
|
||||||
|
|
||||||
return matchingElements;
|
return matchingElements;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue