mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-01 03:22:43 +00:00
Monotone-Parent: c64301b1a83fdea8c39491d31aa1cec41ed68c35
Monotone-Revision: fda20578f843fcc6f1e05c4ff194bef9d220bcae Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-03-22T19:01:54 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -33,29 +33,22 @@
|
||||
{
|
||||
NSString *currentString, *resultString, *cmpString;
|
||||
unsigned int count, max;
|
||||
BOOL found;
|
||||
|
||||
found = NO;
|
||||
resultString = nil;
|
||||
|
||||
cmpString = [aString uppercaseString];
|
||||
max = [self count];
|
||||
count = 0;
|
||||
cmpString = [aString uppercaseString];
|
||||
|
||||
currentString = nil;
|
||||
while (!found && count < max)
|
||||
while (!resultString && count < max)
|
||||
{
|
||||
currentString = [self objectAtIndex: count];
|
||||
if ([[currentString uppercaseString] isEqualToString: cmpString])
|
||||
found = YES;
|
||||
resultString = currentString;
|
||||
else
|
||||
count++;
|
||||
}
|
||||
|
||||
if (found)
|
||||
resultString = currentString;
|
||||
else
|
||||
resultString = nil;
|
||||
|
||||
return resultString;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user