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

NSString category to count the number of occurrences for a given substring.

Build Status

How to install

Available on CocoaPods. CocoaPods version badge 
CocoaPods platform badge

pod 'NSString+VTSubstringOccurrences'

How to use

NSString *string = @"Cake stuff and spacecakes.";
[string vt_numberOfOccurrencesForSubstring:@"cake"]; // = 1
[string vt_numberOfOccurrencesForSubstring:@"cake" options:NSCaseInsensitiveSearch]; // = 2

Credits

NSString+VTSubstringOccurrences was created by Vincent Tourraine.

License

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

Latest podspec

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

Pin It on Pinterest

Share This