Lines Matching refs:substrings
245 const vector<string>& substrings) { in FileMatchesSubstring() argument
246 for (vector<string>::const_iterator target = substrings.begin(); in FileMatchesSubstring()
247 target != substrings.end(); in FileMatchesSubstring()
269 const vector<string> &substrings) { in ShowUsageWithFlagsMatching() argument
281 if (substrings.empty() || in ShowUsageWithFlagsMatching()
282 FileMatchesSubstring(flag->filename, substrings)) { in ShowUsageWithFlagsMatching()
299 if (!found_match && !substrings.empty()) { in ShowUsageWithFlagsMatching()
305 vector<string> substrings; in ShowUsageWithFlagsRestrict() local
307 substrings.push_back(restrict); in ShowUsageWithFlagsRestrict()
309 ShowUsageWithFlagsMatching(argv0, substrings); in ShowUsageWithFlagsRestrict()
356 static void AppendPrognameStrings(vector<string>* substrings, in AppendPrognameStrings() argument
360 substrings->push_back(r + "."); in AppendPrognameStrings()
361 substrings->push_back(r + "-main."); in AppendPrognameStrings()
362 substrings->push_back(r + "_main."); in AppendPrognameStrings()
377 vector<string> substrings; in HandleCommandLineHelpFlags() local
378 AppendPrognameStrings(&substrings, progname); in HandleCommandLineHelpFlags()
383 ShowUsageWithFlagsMatching(progname, substrings); in HandleCommandLineHelpFlags()
412 if (!FileMatchesSubstring(flag->filename, substrings)) in HandleCommandLineHelpFlags()