Latest 0.0.1
Homepage https://github.com/koyachi/NSString-LevenshteinDistance
License MIT
Authors

Version
Platform

Description

This category adds one method to NSString:

  • (NSUInteger)levenshteinDistanceTo:(NSString *)otherString;

Usage

NSString *a = @"[email protected]";
NSString *b = @"[email protected]";
NSUInteger distance = [a levenshteinDistanceTo:b];
XCTAssert(distance == 1, @"distance == 1");

Installation

NSString+LevenshteinDistance is available through CocoaPods, to install
it simply add the following line to your Podfile:

pod "NSString+LevenshteinDistance"

Author

koyachi, [email protected]

License

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

Latest podspec

{
    "name": "NSString+LevenshteinDistance",
    "version": "0.0.1",
    "summary": "Levenshtein distance methods for NSString.",
    "description": "                       Add Levenshtein distance methods to NSString.n                       n                       - http://en.wikipedia.org/wiki/Levenshtein_distancen",
    "homepage": "https://github.com/koyachi/NSString-LevenshteinDistance",
    "license": "MIT",
    "authors": {
        "koyachi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/koyachi/NSString-LevenshteinDistance.git",
        "tag": "0.0.1"
    },
    "requires_arc": true,
    "source_files": "Classes",
    "ios": {
        "exclude_files": "Classes/osx"
    },
    "osx": {
        "exclude_files": "Classes/ios"
    }
}

Pin It on Pinterest

Share This