Lines Matching full:switch_string
54 // Fills in |switch_string| and |switch_value| if |string| is a switch.
55 // This will preserve the input switch prefix in the output |switch_string|.
57 CommandLine::StringType* switch_string,
59 switch_string->clear();
66 *switch_string = string.substr(0, equals_position);
84 CommandLine::StringType switch_string;
87 if (parse_switches && IsSwitch(arg, &switch_string, &switch_value)) {
89 command_line->AppendSwitchNative(UTF16ToASCII(switch_string),
92 command_line->AppendSwitchNative(switch_string, switch_value);
277 bool CommandLine::HasSwitch(const base::StringPiece& switch_string) const {
278 DCHECK_EQ(ToLowerASCII(switch_string), switch_string);
279 return switches_by_stringpiece_.find(switch_string) !=
288 const base::StringPiece& switch_string) const {
289 StringType value = GetSwitchValueNative(switch_string);
291 DLOG(WARNING) << "Value of switch (" << switch_string << ") must be ASCII.";
302 const base::StringPiece& switch_string) const {
303 return FilePath(GetSwitchValueNative(switch_string));
307 const base::StringPiece& switch_string) const {
308 DCHECK_EQ(ToLowerASCII(switch_string), switch_string);
309 auto result = switches_by_stringpiece_.find(switch_string);
314 void CommandLine::AppendSwitch(const std::string& switch_string) {
315 AppendSwitchNative(switch_string, StringType());
318 void CommandLine::AppendSwitchPath(const std::string& switch_string,
320 AppendSwitchNative(switch_string, path.value());
323 void CommandLine::AppendSwitchNative(const std::string& switch_string,
326 const std::string switch_key = ToLowerASCII(switch_string);
329 const std::string& switch_key = switch_string;
347 void CommandLine::AppendSwitchASCII(const std::string& switch_string,
350 AppendSwitchNative(switch_string, ASCIIToUTF16(value_string));
352 AppendSwitchNative(switch_string, value_string);
452 StringType switch_string;
457 if (parse_switches && IsSwitch(arg, &switch_string, &switch_value)) {
458 params.append(switch_string);