Add function for computing the edit distance of two arrays.
authorKaelyn Uhrain <rikka@google.com>
Wed, 15 Feb 2012 22:13:07 +0000 (22:13 +0000)
committerKaelyn Uhrain <rikka@google.com>
Wed, 15 Feb 2012 22:13:07 +0000 (22:13 +0000)
commit01d53ec176a6be4585df1f43af11151988ca4b35
tree9476d14ac77e1cce9d7c01620eb476f2a8170117
parent68c36e0c26d6abc6e19ac66a24061d8c4a187767
Add function for computing the edit distance of two arrays.

Accomplished by moving the body of StringRef::edit_distance into
a separate function that accepts two ArrayRefs, and making
StringRef::edit_distance a wrapper around the new function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150621 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/edit_distance.h [new file with mode: 0644]
lib/Support/StringRef.cpp