Monotone-Parent: b5f2243baded9602acbf5acb8da41a1cc71e1a15

Monotone-Revision: 4b3afa6bee722f77839bced287a525495c0fe2e0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-08-21T19:17:38
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-08-21 19:17:38 +00:00
parent be9a469313
commit a7bbef355c
3 changed files with 23 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2008-08-21 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/NSString+Utilities.m ([NSString
-caseInsensitiveMatches:match]): new method that helps matching
strings against patterns.
2008-08-21 Ludovic Marcotte <lmarcotte@inverse.ca>
* Updated the icons to use those from Thunderbird 2

View File

@@ -51,6 +51,8 @@
- (NSRange) _rangeOfURLInRange: (NSRange) refRange;
- (BOOL) caseInsensitiveMatches: (NSString *) match;
#ifndef GNUSTEP_BASE_LIBRARY
- (BOOL) boolValue;
#endif

View File

@@ -24,6 +24,8 @@
#import <Foundation/NSCharacterSet.h>
#import <Foundation/NSEnumerator.h>
#import <EOControl/EOQualifier.h>
#import <NGExtensions/NGQuotedPrintableCoding.h>
#import "NSArray+Utilities.h"
@@ -322,6 +324,19 @@ static NSMutableCharacterSet *urlStartChars = nil;
return subjectString;
}
- (BOOL) caseInsensitiveMatches: (NSString *) match
{
EOQualifier *sq;
NSString *format;
format = [NSString stringWithFormat:
@"(description isCaseInsensitiveLike: '%@')",
match];
sq = [EOQualifier qualifierWithQualifierFormat: format];
return [sq evaluateWithObject: self];
}
#if LIB_FOUNDATION_LIBRARY
- (BOOL) boolValue
{