Searched defs:common_prefix (Results 1 - 3 of 3) sorted by relevance

/external/chromium_org/components/url_matcher/
H A Dsubstring_set_matcher.cc43 uint32 common_prefix = 0; local
44 while (common_prefix < prefix_bound &&
45 last_pattern[common_prefix] == current_pattern[common_prefix])
46 ++common_prefix;
47 result += current_pattern.size() - common_prefix;
/external/lldb/source/Core/
H A DStringList.cpp127 StringList::LongestCommonPrefix (std::string &common_prefix) argument
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
[all...]
/external/lldb/source/Interpreter/
H A DCommandInterpreter.cpp2036 std::string common_prefix; local
2037 matches.LongestCommonPrefix (common_prefix);
2046 common_prefix.push_back(quote_char);
2048 common_prefix.push_back(' ');
2050 common_prefix.erase (0, partial_name_len);
2051 matches.InsertStringAtIndex(0, common_prefix.c_str());

Completed in 98 milliseconds