Lines Matching refs:switch_string

82               CommandLine::StringType* switch_string,  in IsSwitch()  argument
84 switch_string->clear(); in IsSwitch()
91 *switch_string = string.substr(0, equals_position); in IsSwitch()
335 bool CommandLine::HasSwitch(std::string_view switch_string) const { in HasSwitch()
336 DCHECK_EQ(ToLowerASCII(switch_string), switch_string); in HasSwitch()
337 return Contains(switches_, switch_string); in HasSwitch()
345 std::string_view switch_string) const { in GetSwitchValueASCII()
346 StringType value = GetSwitchValueNative(switch_string); in GetSwitchValueASCII()
352 DLOG(WARNING) << "Value of switch (" << switch_string << ") must be ASCII."; in GetSwitchValueASCII()
362 FilePath CommandLine::GetSwitchValuePath(std::string_view switch_string) const { in GetSwitchValueASCII()
363 return FilePath(GetSwitchValueNative(switch_string)); in GetSwitchValueASCII()
367 std::string_view switch_string) const { in GetSwitchValueASCII()
368 DCHECK_EQ(ToLowerASCII(switch_string), switch_string); in GetSwitchValueASCII()
369 auto result = switches_.find(switch_string); in GetSwitchValueASCII()
373 void CommandLine::AppendSwitch(std::string_view switch_string) { in GetSwitchValueASCII() argument
374 AppendSwitchNative(switch_string, StringType()); in GetSwitchValueASCII()
377 void CommandLine::AppendSwitchPath(std::string_view switch_string, in GetSwitchValueASCII() argument
379 AppendSwitchNative(switch_string, path.value()); in GetSwitchValueASCII()
382 void CommandLine::AppendSwitchNative(std::string_view switch_string, in GetSwitchValueASCII() argument
388 const std::string switch_key = ToLowerASCII(switch_string); in GetSwitchValueASCII()
391 std::string_view switch_key = switch_string; in GetSwitchValueASCII()
415 void CommandLine::AppendSwitchASCII(std::string_view switch_string, in GetSwitchValueASCII() argument
418 AppendSwitchNative(switch_string, UTF8ToWide(value_string)); in GetSwitchValueASCII()
420 AppendSwitchNative(switch_string, value_string); in GetSwitchValueASCII()
584 CommandLine::StringType switch_string; in GetSwitchValueASCII() local
587 if (parse_switches && IsSwitch(arg, &switch_string, &switch_value)) { in GetSwitchValueASCII()
590 IsSwitchWithKey(switch_string, kSingleArgument)) { in GetSwitchValueASCII()
591 ParseAsSingleArgument(switch_string); in GetSwitchValueASCII()
594 AppendSwitchNative(WideToUTF8(switch_string), switch_value); in GetSwitchValueASCII()
596 AppendSwitchNative(switch_string, switch_value); in GetSwitchValueASCII()
617 StringType switch_string; in GetSwitchValueASCII() local
622 if (parse_switches && IsSwitch(arg, &switch_string, &switch_value)) { in GetSwitchValueASCII()
623 params.append(switch_string); in GetSwitchValueASCII()