Lines Matching refs:CommandLine
29 CommandLine* CommandLine::current_process_commandline_ = nullptr;
33 const CommandLine::CharType kSwitchTerminator[] = FILE_PATH_LITERAL("--");
34 const CommandLine::CharType kSwitchValueSeparator[] = FILE_PATH_LITERAL("=");
42 const CommandLine::CharType* const kSwitchPrefixes[] = {u"--", u"-", u"/"};
45 const CommandLine::CharType* const kSwitchPrefixes[] = {"--", "-"};
49 size_t GetSwitchPrefixLength(const CommandLine::StringType& string) { in GetSwitchPrefixLength()
51 CommandLine::StringType prefix(kSwitchPrefixes[i]); in GetSwitchPrefixLength()
60 bool IsSwitch(const CommandLine::StringType& string, in IsSwitch()
61 CommandLine::StringType* switch_string, in IsSwitch()
62 CommandLine::StringType* switch_value) { in IsSwitch()
71 if (equals_position != CommandLine::StringType::npos) in IsSwitch()
78 void AppendSwitchesAndArguments(CommandLine* command_line, in AppendSwitchesAndArguments()
79 const CommandLine::StringVector& argv, in AppendSwitchesAndArguments()
83 CommandLine::StringType arg = argv[i]; in AppendSwitchesAndArguments()
90 CommandLine::StringType switch_string; in AppendSwitchesAndArguments()
91 CommandLine::StringType switch_value; in AppendSwitchesAndArguments()
162 CommandLine::CommandLine(NoProgram no_program) in CommandLine() function in base::CommandLine
165 CommandLine::CommandLine(const FilePath& program) in CommandLine() function in base::CommandLine
170 CommandLine::CommandLine(int argc, const CommandLine::CharType* const* argv) in CommandLine() function in base::CommandLine
175 CommandLine::CommandLine(const StringVector& argv) in CommandLine() function in base::CommandLine
180 CommandLine::CommandLine(const CommandLine& other) = default;
182 CommandLine& CommandLine::operator=(const CommandLine& other) = default;
184 CommandLine::~CommandLine() = default;
188 void CommandLine::set_slash_is_not_a_switch() { in set_slash_is_not_a_switch()
196 void CommandLine::InitUsingArgvForTesting(int argc, const char* const* argv) { in InitUsingArgvForTesting()
198 current_process_commandline_ = new CommandLine(NO_PROGRAM); in InitUsingArgvForTesting()
200 base::CommandLine::StringVector argv_vector; in InitUsingArgvForTesting()
208 bool CommandLine::Init(int argc, const char* const* argv) { in Init()
216 current_process_commandline_ = new CommandLine(NO_PROGRAM); in Init()
230 void CommandLine::Reset() { in Reset()
237 CommandLine* CommandLine::ForCurrentProcess() { in ForCurrentProcess()
243 bool CommandLine::InitializedForCurrentProcess() { in InitializedForCurrentProcess()
249 CommandLine CommandLine::FromString(const std::u16string& command_line) { in FromString()
250 CommandLine cmd(NO_PROGRAM); in FromString()
256 void CommandLine::InitFromArgv(int argc, in InitFromArgv()
257 const CommandLine::CharType* const* argv) { in InitFromArgv()
264 void CommandLine::InitFromArgv(const StringVector& argv) { in InitFromArgv()
272 FilePath CommandLine::GetProgram() const { in GetProgram()
276 void CommandLine::SetProgram(const FilePath& program) { in SetProgram()
286 bool CommandLine::HasSwitch(std::string_view switch_string) const { in HasSwitch()
291 bool CommandLine::HasSwitch(const char switch_constant[]) const { in HasSwitch()
295 std::string CommandLine::GetSwitchValueASCII( in GetSwitchValueASCII()
309 FilePath CommandLine::GetSwitchValuePath(std::string_view switch_string) const { in GetSwitchValuePath()
313 CommandLine::StringType CommandLine::GetSwitchValueNative( in GetSwitchValueNative()
320 void CommandLine::AppendSwitch(const std::string& switch_string) { in AppendSwitch()
324 void CommandLine::AppendSwitchPath(const std::string& switch_string, in AppendSwitchPath()
329 void CommandLine::AppendSwitchNative(const std::string& switch_string, in AppendSwitchNative()
330 const CommandLine::StringType& value) { in AppendSwitchNative()
352 void CommandLine::AppendSwitchASCII(const std::string& switch_string, in AppendSwitchASCII()
363 void CommandLine::CopySwitchesFrom(const CommandLine& source, in CopySwitchesFrom()
372 CommandLine::StringVector CommandLine::GetArgs() const { in GetArgs()
383 void CommandLine::AppendArg(const std::string& value) { in AppendArg()
394 void CommandLine::AppendArgPath(const FilePath& path) { in AppendArgPath()
398 void CommandLine::AppendArgNative(const CommandLine::StringType& value) { in AppendArgNative()
402 void CommandLine::AppendArguments(const CommandLine& other, in AppendArguments()
409 void CommandLine::PrependWrapper(const CommandLine::StringType& wrapper) { in PrependWrapper()
427 void CommandLine::ParseFromString(const std::u16string& command_line) { in ParseFromString()
445 CommandLine::StringType CommandLine::GetCommandLineStringInternal( in GetCommandLineStringInternal()
459 CommandLine::StringType CommandLine::GetArgumentsStringInternal( in GetArgumentsStringInternal()