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

Method HasString

libs/indexer/postcodes_matcher.cpp:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 bool HasString(StringSliceBase const & slice, bool isPrefix) const
61 {
62 auto const status = m_strings.Has(make_transform_iterator(JoinIterator::Begin(slice), &SimplifyChar),
63 make_transform_iterator(JoinIterator::End(slice), &SimplifyChar));
64 switch (status)
65 {
66 case TStringSet::Status::Absent: return false;
67 case TStringSet::Status::Prefix: return isPrefix;
68 case TStringSet::Status::Full: return true;
69 }
70 UNREACHABLE();
71 }
72
73 inline size_t GetMaxNumTokensInPostcode() const { return m_maxNumTokensInPostcode; }
74

Callers 1

LooksLikePostcodeFunction · 0.45

Calls 1

HasMethod · 0.45

Tested by

no test coverage detected