Thanks to visit codestin.com
Credit goes to github.com

Skip to content

vtourraine/NSString-VTContainsSubstring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NSString+VTContainsSubstring

NSString category to test the presence of a given substring.

Build Status

Starting with OS X 10.10 and iOS 8, NSString now offers a containsString: convenience method. The vt_containsSubstring: method is compatible with earlier versions, and is slightly more customizable with its options parameter.

How to install

Available on CocoaPods. CocoaPods version badge  CocoaPods platform badge

pod 'NSString+VTContainsSubstring'

How to use

NSString *string = @"I like cakes.";
[string vt_containsSubstring:@"cake"]; // = YES
[string vt_containsSubstring:@"Cake" options:NSCaseInsensitiveSearch]; // = YES

Credits

NSString+VTContainsSubstring was created by Vincent Tourraine.

License

NSString+VTContainsSubstring is available under the MIT license. See the LICENSE file for more info.

About

NSString category to test the presence of a given substring.

Resources

License

Stars

Watchers

Forks

Packages

No packages published