Lines Matching refs:CommandLine
27 CommandLine* CommandLine::current_process_commandline_ = nullptr;
31 const CommandLine::CharType kSwitchTerminator[] = FILE_PATH_LITERAL("--");
32 const CommandLine::CharType kSwitchValueSeparator[] = FILE_PATH_LITERAL("=");
40 const CommandLine::CharType* const kSwitchPrefixes[] = {L"--", L"-", L"/"};
43 const CommandLine::CharType* const kSwitchPrefixes[] = {"--", "-"};
47 size_t GetSwitchPrefixLength(const CommandLine::StringType& string) { in GetSwitchPrefixLength()
49 CommandLine::StringType prefix(kSwitchPrefixes[i]); in GetSwitchPrefixLength()
58 bool IsSwitch(const CommandLine::StringType& string, in IsSwitch()
59 CommandLine::StringType* switch_string, in IsSwitch()
60 CommandLine::StringType* switch_value) { in IsSwitch()
69 if (equals_position != CommandLine::StringType::npos) in IsSwitch()
75 void AppendSwitchesAndArguments(CommandLine* command_line, in AppendSwitchesAndArguments()
76 const CommandLine::StringVector& argv) { in AppendSwitchesAndArguments()
79 CommandLine::StringType arg = argv[i]; in AppendSwitchesAndArguments()
86 CommandLine::StringType switch_string; in AppendSwitchesAndArguments()
87 CommandLine::StringType switch_value; in AppendSwitchesAndArguments()
156 CommandLine::CommandLine(NoProgram no_program) in CommandLine() function in base::CommandLine
161 CommandLine::CommandLine(const FilePath& program) in CommandLine() function in base::CommandLine
167 CommandLine::CommandLine(int argc, const CommandLine::CharType* const* argv) in CommandLine() function in base::CommandLine
173 CommandLine::CommandLine(const StringVector& argv) in CommandLine() function in base::CommandLine
179 CommandLine::CommandLine(const CommandLine& other) = default;
181 CommandLine& CommandLine::operator=(const CommandLine& other) = default;
183 CommandLine::~CommandLine() = default;
187 void CommandLine::set_slash_is_not_a_switch() { in set_slash_is_not_a_switch()
194 void CommandLine::InitUsingArgvForTesting(int argc, const char* const* argv) { in InitUsingArgvForTesting()
196 current_process_commandline_ = new CommandLine(NO_PROGRAM); in InitUsingArgvForTesting()
198 base::CommandLine::StringVector argv_vector; in InitUsingArgvForTesting()
206 bool CommandLine::Init(int argc, const char* const* argv) { in Init()
214 current_process_commandline_ = new CommandLine(NO_PROGRAM); in Init()
227 void CommandLine::Reset() { in Reset()
234 CommandLine* CommandLine::ForCurrentProcess() { in ForCurrentProcess()
240 bool CommandLine::InitializedForCurrentProcess() { in InitializedForCurrentProcess()
246 CommandLine CommandLine::FromString(const string16& command_line) { in FromString()
247 CommandLine cmd(NO_PROGRAM); in FromString()
253 void CommandLine::InitFromArgv(int argc, in InitFromArgv()
254 const CommandLine::CharType* const* argv) { in InitFromArgv()
261 void CommandLine::InitFromArgv(const StringVector& argv) { in InitFromArgv()
269 FilePath CommandLine::GetProgram() const { in GetProgram()
273 void CommandLine::SetProgram(const FilePath& program) { in SetProgram()
283 bool CommandLine::HasSwitch(const base::StringPiece& switch_string) const { in HasSwitch()
288 bool CommandLine::HasSwitch(const char switch_constant[]) const { in HasSwitch()
292 std::string CommandLine::GetSwitchValueASCII( in GetSwitchValueASCII()
306 FilePath CommandLine::GetSwitchValuePath( in GetSwitchValuePath()
311 CommandLine::StringType CommandLine::GetSwitchValueNative( in GetSwitchValueNative()
318 void CommandLine::AppendSwitch(const std::string& switch_string) { in AppendSwitch()
322 void CommandLine::AppendSwitchPath(const std::string& switch_string, in AppendSwitchPath()
327 void CommandLine::AppendSwitchNative(const std::string& switch_string, in AppendSwitchNative()
328 const CommandLine::StringType& value) { in AppendSwitchNative()
350 void CommandLine::AppendSwitchASCII(const std::string& switch_string, in AppendSwitchASCII()
361 void CommandLine::CopySwitchesFrom(const CommandLine& source, in CopySwitchesFrom()
370 CommandLine::StringVector CommandLine::GetArgs() const { in GetArgs()
381 void CommandLine::AppendArg(const std::string& value) { in AppendArg()
392 void CommandLine::AppendArgPath(const FilePath& path) { in AppendArgPath()
396 void CommandLine::AppendArgNative(const CommandLine::StringType& value) { in AppendArgNative()
400 void CommandLine::AppendArguments(const CommandLine& other, in AppendArguments()
407 void CommandLine::PrependWrapper(const CommandLine::StringType& wrapper) { in PrependWrapper()
425 void CommandLine::ParseFromString(const string16& command_line) { in ParseFromString()
442 CommandLine::StringType CommandLine::GetCommandLineStringInternal( in GetCommandLineStringInternal()
456 CommandLine::StringType CommandLine::GetArgumentsStringInternal( in GetArgumentsStringInternal()