Lines Matching defs:switch_string
53 // Fills in |switch_string| and |switch_value| if |string| is a switch.
54 // This will preserve the input switch prefix in the output |switch_string|.
56 CommandLine::StringType* switch_string,
58 switch_string->clear();
65 *switch_string = string.substr(0, equals_position);
79 CommandLine::StringType switch_string;
82 if (parse_switches && IsSwitch(arg, &switch_string, &switch_value)) {
84 command_line.AppendSwitchNative(WideToASCII(switch_string), switch_value);
86 command_line.AppendSwitchNative(switch_string, switch_value);
267 StringType switch_string;
272 if (parse_switches && IsSwitch(arg, &switch_string, &switch_value)) {
273 params.append(switch_string);
299 bool CommandLine::HasSwitch(const std::string& switch_string) const {
300 return switches_.find(LowerASCIIOnWindows(switch_string)) != switches_.end();
304 const std::string& switch_string) const {
305 StringType value = GetSwitchValueNative(switch_string);
307 DLOG(WARNING) << "Value of switch (" << switch_string << ") must be ASCII.";
318 const std::string& switch_string) const {
319 return FilePath(GetSwitchValueNative(switch_string));
323 const std::string& switch_string) const {
325 switches_.find(LowerASCIIOnWindows(switch_string));
329 void CommandLine::AppendSwitch(const std::string& switch_string) {
330 AppendSwitchNative(switch_string, StringType());
333 void CommandLine::AppendSwitchPath(const std::string& switch_string,
335 AppendSwitchNative(switch_string, path.value());
338 void CommandLine::AppendSwitchNative(const std::string& switch_string,
340 std::string switch_key(LowerASCIIOnWindows(switch_string));
344 StringType combined_switch_string(switch_string);
357 void CommandLine::AppendSwitchASCII(const std::string& switch_string,
360 AppendSwitchNative(switch_string, ASCIIToWide(value_string));
362 AppendSwitchNative(switch_string, value_string);