NSString+LevenshteinDistance 0.0.1

NSString+LevenshteinDistance 0.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



  • By
  • koyachi

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

Author

koyachi, [email protected]

License

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