Skip to content

Instantly share code, notes, and snippets.

@Morse-Code
Created May 24, 2013 16:26
Show Gist options
  • Select an option

  • Save Morse-Code/5644699 to your computer and use it in GitHub Desktop.

Select an option

Save Morse-Code/5644699 to your computer and use it in GitHub Desktop.

Revisions

  1. Morse-Code created this gist May 24, 2013.
    3 changes: 3 additions & 0 deletions Asset.m
    Original 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);
    3 changes: 3 additions & 0 deletions Asset~.m
    Original 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);