Created
May 24, 2013 16:26
-
-
Save Morse-Code/5644699 to your computer and use it in GitHub Desktop.
Revisions
-
Morse-Code created this gist
May 24, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ NSString *str = @"product.orderEntryListItem.orderItem.caseDiscount"; BOOL found = [str rangeOfString:@"Discount"].location != NSNotFound; NSLog(@"%d", found); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ NSString *str = @"product.orderEntryListItem.orderItem.caseDiscount"; BOOL found = [str rangeOfString:@"Discount" options:NSCaseInsensitiveSearch].location != NSNotFound; NSLog(@"%d", found);