Home | History | Annotate | Download | only in Core

Lines Matching refs:common_prefix

127 StringList::LongestCommonPrefix (std::string &common_prefix)
134 common_prefix.clear();
136 common_prefix = m_strings[pos];
142 // First trim common_prefix if it is longer than the current element:
143 if (common_prefix.size() > new_size)
144 common_prefix.erase (new_size);
148 for (size_t i = 0; i < common_prefix.size(); i++)
150 if (m_strings[pos][i] != common_prefix[i])
152 common_prefix.erase(i);
158 if (common_prefix.empty())