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];
|
||||
|
||||
matchingElements = [NSMutableArray new];
|
||||
[matchingElements autorelease];
|
||||
matchingElements = [NSMutableArray arrayWithCapacity: 16];
|
||||
|
||||
allElements = [self objectEnumerator];
|
||||
currentElement = [allElements nextObject];
|
||||
while (currentElement)
|
||||
while ((currentElement = [allElements nextObject]))
|
||||
{
|
||||
currentTag = [[currentElement tag] uppercaseString];
|
||||
if ([currentTag isEqualToString: cmpTag])
|
||||
[matchingElements addObject: currentElement];
|
||||
currentElement = [allElements nextObject];
|
||||
}
|
||||
|
||||
return matchingElements;
|
||||
|
@ -92,16 +89,12 @@
|
|||
|
||||
allElements = [self objectEnumerator];
|
||||
|
||||
matchingElements = [NSMutableArray new];
|
||||
[matchingElements autorelease];
|
||||
currentElement = [allElements nextObject];
|
||||
while (currentElement)
|
||||
{
|
||||
if ([currentElement hasAttribute: anAttribute
|
||||
havingValue: aValue])
|
||||
[matchingElements addObject: currentElement];
|
||||
currentElement = [allElements nextObject];
|
||||
}
|
||||
matchingElements = [NSMutableArray arrayWithCapacity: 16];
|
||||
|
||||
while ((currentElement = [allElements nextObject]))
|
||||
if ([currentElement hasAttribute: anAttribute
|
||||
havingValue: aValue])
|
||||
[matchingElements addObject: currentElement];
|
||||
|
||||
return matchingElements;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue