Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Classes/NSString+ObjectiveSugar.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ NSString *NSStringWithFormat(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);

@return YES if 'string' is a substring of the receiver, otherwise NO
*/
- (BOOL)containsString:(NSString *)string;
- (BOOL)containsCaseInsensitiveString:(NSString *)string;


/**
Expand Down
2 changes: 1 addition & 1 deletion Classes/NSString+ObjectiveSugar.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ - (NSString *)lowerCamelCase {
return [upperCamelCase stringByReplacingCharactersInRange:NSMakeRange(0, 1) withString:firstLetter.lowercaseString];
}

- (BOOL)containsString:(NSString *) string {
- (BOOL)containsCaseInsensitiveString:(NSString *) string {
NSRange range = [self rangeOfString:string options:NSCaseInsensitiveSearch];
return range.location != NSNotFound;
}
Expand Down