MCPcopy Create free account
hub / github.com/comaps/comaps / PrefixErrorsMade

Method PrefixErrorsMade

libs/base/levenshtein_dfa.cpp:339–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339size_t LevenshteinDFA::PrefixErrorsMade(State const & s) const
340{
341 size_t errorsMade = m_maxErrors;
342 for (auto const & p : s.m_positions)
343 errorsMade = std::min(errorsMade, m_maxErrors - p.m_errorsLeft);
344 return errorsMade;
345}
346
347size_t LevenshteinDFA::Move(size_t s, UniChar c) const
348{

Callers 3

GetPrefixErrorsMadeFunction · 0.45
GetResultFunction · 0.45
UNIT_TESTFunction · 0.45

Calls

no outgoing calls

Tested by 2

GetResultFunction · 0.36
UNIT_TESTFunction · 0.36