Searched refs:common_prefix (Results 1 - 6 of 6) sorted by relevance

/freebsd-10-stable/contrib/llvm/tools/lldb/source/Core/
H A DStringList.cpp147 StringList::LongestCommonPrefix (std::string &common_prefix) argument
153 common_prefix.clear();
157 common_prefix = m_strings.front();
164 // First trim common_prefix if it is longer than the current element:
165 if (common_prefix.size() > new_size)
166 common_prefix.erase (new_size);
169 for (size_t i = 0; i < common_prefix.size(); i++)
171 if (curr_string[i] != common_prefix[i])
173 common_prefix.erase(i);
179 if (common_prefix
[all...]
H A DIOHandler.cpp287 std::string common_prefix; local
288 matches.LongestCommonPrefix (common_prefix);
295 common_prefix.push_back(' ');
297 common_prefix.erase (0, partial_name_len);
298 matches.InsertStringAtIndex(0, std::move(common_prefix));
/freebsd-10-stable/contrib/llvm/tools/lldb/include/lldb/Core/
H A DStringList.h95 LongestCommonPrefix (std::string &common_prefix);
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Interpreter/
H A DArgs.cpp1185 Args::LongestCommonPrefix (std::string &common_prefix)
1190 common_prefix.clear();
1192 common_prefix = (*pos);
1198 // First trim common_prefix if it is longer than the current element:
1199 if (common_prefix.size() > new_size)
1200 common_prefix.erase (new_size);
1204 for (size_t i = 0; i < common_prefix.size(); i++)
1206 if ((*pos)[i] != common_prefix[i])
1208 common_prefix.erase(i);
1214 if (common_prefix
[all...]
H A DCommandInterpreter.cpp2076 std::string common_prefix; local
2077 matches.LongestCommonPrefix (common_prefix);
2086 common_prefix.push_back(quote_char);
2088 common_prefix.push_back(' ');
2090 common_prefix.erase (0, partial_name_len);
2091 matches.InsertStringAtIndex(0, common_prefix.c_str());
/freebsd-10-stable/contrib/llvm/tools/lldb/include/lldb/Interpreter/
H A DArgs.h444 LongestCommonPrefix (std::string &common_prefix);

Completed in 142 milliseconds