MCPcopy Create free account
hub / github.com/ablab/spades / edit_distance

Method edit_distance

ext/src/llvm/StringRef.cpp:95–102  ·  view source on GitHub ↗

Compute the edit distance between the two given strings.

Source from the content-addressed store, hash-verified

93
94// Compute the edit distance between the two given strings.
95unsigned 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

Callers

nothing calls this directly

Calls 6

ComputeEditDistanceFunction · 0.85
makeArrayRefFunction · 0.85
dataFunction · 0.50
sizeClass · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected