Lines Matching refs:longest_common_prefix
105 string *longest_common_prefix);
223 string longest_common_prefix; in PrintFlagCompletionInfo() local
229 &longest_common_prefix); in PrintFlagCompletionInfo()
231 DVLOG(1) << "Identified " << longest_common_prefix in PrintFlagCompletionInfo()
233 if (longest_common_prefix.size() > canonical_token.size()) { in PrintFlagCompletionInfo()
236 DVLOG(1) << "The common prefix '" << longest_common_prefix in PrintFlagCompletionInfo()
239 fprintf(stdout, "--%s", longest_common_prefix.c_str()); in PrintFlagCompletionInfo()
355 string *longest_common_prefix) { in FindMatchingFlags() argument
365 *longest_common_prefix = it->name; in FindMatchingFlags()
367 if (longest_common_prefix->empty() || it->name.empty()) { in FindMatchingFlags()
368 longest_common_prefix->clear(); in FindMatchingFlags()
372 while (pos < longest_common_prefix->size() && in FindMatchingFlags()
374 (*longest_common_prefix)[pos] == it->name[pos]) in FindMatchingFlags()
376 longest_common_prefix->erase(pos); in FindMatchingFlags()