NSString+LevenshteinDistance 0.0.1

NSString+LevenshteinDistance 0.0.1

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

Maintained by Unclaimed.


Downloads

Total2,789
Week0
Month0

Installs

Apps21
Test Targets4
powered by Segment

GitHub

Stars16
Watchers1
Forks1
Issues0
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 37


  • 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.