Home
last modified time | relevance | path

Searched refs:switch_string (Results 1 – 8 of 8) sorted by relevance

/external/chromium/base/
Dcommand_line.cc94 std::string* switch_string, in IsSwitch() argument
96 switch_string->clear(); in IsSwitch()
116 *switch_string = WideToASCII(switch_native); in IsSwitch()
117 Lowercase(switch_string); in IsSwitch()
119 *switch_string = switch_native; in IsSwitch()
218 std::string switch_string; in InitFromArgv() local
220 if (IsSwitch(arg, &switch_string, &switch_value)) { in InitFromArgv()
221 switches_[switch_string] = switch_value; in InitFromArgv()
246 bool CommandLine::HasSwitch(const std::string& switch_string) const { in HasSwitch()
247 std::string lowercased_switch(switch_string); in HasSwitch()
[all …]
Dcommand_line.h96 bool HasSwitch(const std::string& switch_string) const;
100 std::string GetSwitchValueASCII(const std::string& switch_string) const;
101 FilePath GetSwitchValuePath(const std::string& switch_string) const;
102 StringType GetSwitchValueNative(const std::string& switch_string) const;
113 void AppendSwitch(const std::string& switch_string);
114 void AppendSwitchPath(const std::string& switch_string, const FilePath& path);
115 void AppendSwitchNative(const std::string& switch_string,
117 void AppendSwitchASCII(const std::string& switch_string,
/external/chromium_org/base/
Dcommand_line.cc56 CommandLine::StringType* switch_string, in IsSwitch() argument
58 switch_string->clear(); in IsSwitch()
65 *switch_string = string.substr(0, equals_position); in IsSwitch()
79 CommandLine::StringType switch_string; in AppendSwitchesAndArguments() local
82 if (parse_switches && IsSwitch(arg, &switch_string, &switch_value)) { in AppendSwitchesAndArguments()
84 command_line.AppendSwitchNative(WideToASCII(switch_string), switch_value); in AppendSwitchesAndArguments()
86 command_line.AppendSwitchNative(switch_string, switch_value); in AppendSwitchesAndArguments()
267 StringType switch_string; in GetArgumentsString() local
272 if (parse_switches && IsSwitch(arg, &switch_string, &switch_value)) { in GetArgumentsString()
273 params.append(switch_string); in GetArgumentsString()
[all …]
Dcommand_line.h116 bool HasSwitch(const std::string& switch_string) const;
120 std::string GetSwitchValueASCII(const std::string& switch_string) const;
121 base::FilePath GetSwitchValuePath(const std::string& switch_string) const;
122 StringType GetSwitchValueNative(const std::string& switch_string) const;
129 void AppendSwitch(const std::string& switch_string);
130 void AppendSwitchPath(const std::string& switch_string,
132 void AppendSwitchNative(const std::string& switch_string,
134 void AppendSwitchASCII(const std::string& switch_string,
/external/chromium_org/chrome/browser/android/
Dchrome_startup_flags.cc21 void SetCommandLineSwitch(const std::string& switch_string) { in SetCommandLineSwitch() argument
23 if (!command_line->HasSwitch(switch_string)) in SetCommandLineSwitch()
24 command_line->AppendSwitch(switch_string); in SetCommandLineSwitch()
27 void SetCommandLineSwitchASCII(const std::string& switch_string, in SetCommandLineSwitchASCII() argument
30 if (!command_line->HasSwitch(switch_string)) in SetCommandLineSwitchASCII()
31 command_line->AppendSwitchASCII(switch_string, value); in SetCommandLineSwitchASCII()
/external/chromium_org/base/android/
Dcommand_line_android.cc38 std::string switch_string(ConvertJavaStringToUTF8(env, jswitch)); in HasSwitch() local
39 return CommandLine::ForCurrentProcess()->HasSwitch(switch_string); in HasSwitch()
43 std::string switch_string(ConvertJavaStringToUTF8(env, jswitch)); in GetSwitchValue() local
45 switch_string)); in GetSwitchValue()
53 std::string switch_string(ConvertJavaStringToUTF8(env, jswitch)); in AppendSwitch() local
54 CommandLine::ForCurrentProcess()->AppendSwitch(switch_string); in AppendSwitch()
59 std::string switch_string(ConvertJavaStringToUTF8(env, jswitch)); in AppendSwitchWithValue() local
61 CommandLine::ForCurrentProcess()->AppendSwitchASCII(switch_string, in AppendSwitchWithValue()
/external/chromium_org/chrome/service/cloud_print/
Dcloud_print_proxy.cc27 void LaunchBrowserProcessWithSwitch(const std::string& switch_string) { in LaunchBrowserProcessWithSwitch() argument
42 cmd_line.AppendSwitch(switch_string); in LaunchBrowserProcessWithSwitch()
/external/chromium_org/content/renderer/gpu/
Drender_widget_compositor.cc53 const std::string& switch_string, in GetSwitchValueAsInt() argument
57 std::string string_value = command_line.GetSwitchValueASCII(switch_string); in GetSwitchValueAsInt()
64 LOG(WARNING) << "Failed to parse switch " << switch_string << ": " << in GetSwitchValueAsInt()