Compute the edit distance between the two given strings.
| 93 | |
| 94 | // Compute the edit distance between the two given strings. |
| 95 | unsigned StringRef::edit_distance(llvm::StringRef Other, |
| 96 | bool AllowReplacements, |
| 97 | unsigned MaxEditDistance) const { |
| 98 | return llvm::ComputeEditDistance( |
| 99 | makeArrayRef(data(), size()), |
| 100 | makeArrayRef(Other.data(), Other.size()), |
| 101 | AllowReplacements, MaxEditDistance); |
| 102 | } |
| 103 | |
| 104 | //===----------------------------------------------------------------------===// |
| 105 | // String Operations |
nothing calls this directly
no test coverage detected