mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-21 17:36:24 +00:00
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:
@@ -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
|
||||
|
||||
@@ -51,6 +51,8 @@
|
||||
|
||||
- (NSRange) _rangeOfURLInRange: (NSRange) refRange;
|
||||
|
||||
- (BOOL) caseInsensitiveMatches: (NSString *) match;
|
||||
|
||||
#ifndef GNUSTEP_BASE_LIBRARY
|
||||
- (BOOL) boolValue;
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user