MCPcopy Create free account
hub / github.com/duckdb/duckdb / GetIndex

Method GetIndex

src/common/string_util.cpp:574–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572 unsafe_unique_array<idx_t> dist;
573
574 idx_t GetIndex(idx_t i, idx_t j) {
575 return j * len1 + i;
576 }
577};
578
579// adapted from https://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Levenshtein_distance#C++

Callers 15

GetMemoryLimitMethod · 0.45
GetCPULimitMethod · 0.45
CanonicalizePathMethod · 0.45
SetValueColumnMethod · 0.45
box_renderer.cppFile · 0.45
RenderMethod · 0.45
RenderValueMethod · 0.45
CanPrettyPrintMethod · 0.45
CanHighlightMethod · 0.45
PotentiallyExpandRowMethod · 0.45
ComputeRenderWidthsMethod · 0.45
RenderValuesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected