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

Method AddString

libs/indexer/postcodes_matcher.cpp:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75private:
76 void AddString(UniString const & s, search::Delimiters & delimiters)
77 {
78 vector<UniString> tokens;
79 SplitUniString(s, base::MakeBackInsertFunctor(tokens), delimiters);
80 StringSlice slice(tokens);
81
82 m_maxNumTokensInPostcode = max(m_maxNumTokensInPostcode, tokens.size());
83 m_strings.Add(JoinIterator::Begin(slice), JoinIterator::End(slice));
84 }
85
86 TStringSet m_strings;
87 size_t m_maxNumTokensInPostcode;

Callers 7

SetDefaultNameIfEmptyMethod · 0.45
AddNameMethod · 0.45
SetNameMethod · 0.45
RemoveBlankNamesMethod · 0.45
ApplyJournalEntryMethod · 0.45
UNIT_TESTFunction · 0.45
UNIT_TESTFunction · 0.45

Calls 4

SplitUniStringFunction · 0.85
MakeBackInsertFunctorFunction · 0.85
sizeMethod · 0.45
AddMethod · 0.45

Tested by 2

UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36