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

Method Put

libs/indexer/search_string_utils.cpp:669–696  ·  view source on GitHub ↗

StreetTokensFilter ------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

667
668// StreetTokensFilter ------------------------------------------------------------------------------
669void StreetTokensFilter::Put(UniString const & token, bool isPrefix, size_t tag)
670{
671 if (isPrefix)
672 {
673 if (m_withMisprints)
674 {
675 if (IsStreetSynonymPrefixWithMisprints(token))
676 return;
677 }
678 else
679 {
680 if (IsStreetSynonymPrefix(token))
681 return;
682 }
683 }
684 else if (m_withMisprints)
685 {
686 if (IsStreetSynonymWithMisprints(token))
687 return;
688 }
689 else
690 {
691 if (IsStreetSynonym(token))
692 return;
693 }
694
695 m_callback(token, tag);
696}
697
698String2StringMap const & GetDACHStreets()
699{

Callers

nothing calls this directly

Calls 4

IsStreetSynonymPrefixFunction · 0.85
IsStreetSynonymFunction · 0.85

Tested by

no test coverage detected