Latest 0.3
Homepage https://github.com/vtourraine/NSString-VTContainsSubstring
License MIT
Frameworks Foundation
Authors

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.

Latest podspec

{
    "name": "NSString+VTContainsSubstring",
    "version": "0.3",
    "summary": "NSString category to test the presence of a given substring.",
    "description": "`NSString` category to test the presence of a given substring.",
    "homepage": "https://github.com/vtourraine/NSString-VTContainsSubstring",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Vincent Tourraine": "[email protected]"
    },
    "social_media_url": "http://twitter.com/vtourraine",
    "source": {
        "git": "https://github.com/vtourraine/NSString-VTContainsSubstring.git",
        "tag": "0.3"
    },
    "source_files": "Classes",
    "frameworks": "Foundation",
    "requires_arc": true
}

Pin It on Pinterest

Share This