Latest 0.1.1
Homepage https://github.com/edmundmok/StringAlgorithms.Swift
License MIT
Platforms ios 8.0
Frameworks Foundation
Authors

StringAlgorithms.Swift

String algorithms and data structures, implemented in Swift.

Build Status
Platform
Language
License

Requirements

  • iOS 8.0+
  • Xcode 9
  • Swift 4

Installation

CocoaPods

Install CocoaPods

$ gem install cocoapods

Add the following to your Podfile:

target '<Your Target Name>' do
    pod `StringAlgorithms`
end

Install the pod

pod install

Manual Install

Fork / Clone this repo, build the framework and add the built StringAlgorithms.framework into your Xcode project.

Documentation

Algorithms

Algorithm Format
Hamming Distance a.hammingDistance(to: b)
Levenshtein Distance a.levenshteinDistance(to: b)
Optimal String Alignment a.optimalStringAlignmentDistance(to: b)
Damerau-Levenshtein Distance a.damerauLevenshteinDistance(to: b)
Longest Common Subsequence a.longestCommonSubsequence(other: b)
Longest Common Substring a.longestCommonSubstring(other: b)

Data Structures

  • Trie

License

MIT License

Latest podspec

{
    "name": "StringAlgorithms",
    "version": "0.1.1",
    "summary": "String algorithms and data structures, implemented in Swift.",
    "description": "String algorithms and data structures for efficient search and manipulation of Strings, written in Swift.",
    "homepage": "https://github.com/edmundmok/StringAlgorithms.Swift",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Edmund Mok": "[email protected]"
    },
    "source": {
        "git": "https://github.com/edmundmok/StringAlgorithms.Swift.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "StringAlgorithms/**/*.swift",
    "frameworks": "Foundation",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This