Lines Matching refs:CommandLine
41 CommandLine* CommandLine::current_process_commandline_ = nullptr;
47 constexpr CommandLine::CharType kSwitchTerminator[] = FILE_PATH_LITERAL("--");
48 constexpr CommandLine::CharType kSwitchValueSeparator[] =
57 constexpr CommandLine::StringViewType kSwitchPrefixes[] = {L"--", L"-", L"/"};
60 constexpr CommandLine::StringViewType kSwitchPrefixes[] = {"--", "-"};
71 constexpr CommandLine::CharType kSingleArgument[] =
75 size_t GetSwitchPrefixLength(CommandLine::StringViewType string) { in GetSwitchPrefixLength()
77 CommandLine::StringType prefix(kSwitchPrefixes[i]); in GetSwitchPrefixLength()
86 bool IsSwitch(const CommandLine::StringType& string, in IsSwitch()
87 CommandLine::StringType* switch_string, in IsSwitch()
88 CommandLine::StringType* switch_value) { in IsSwitch()
97 if (equals_position != CommandLine::StringType::npos) in IsSwitch()
104 bool IsSwitchWithKey(CommandLine::StringViewType string, in IsSwitchWithKey()
105 CommandLine::StringViewType switch_key_without_prefix) { in IsSwitchWithKey()
170 void CommandLine::SetDuplicateSwitchHandler( in SetDuplicateSwitchHandler()
176 CommandLine::CommandLine(NoProgram no_program) : argv_(1), begin_args_(1) {} in CommandLine() function in base::CommandLine
178 CommandLine::CommandLine(const FilePath& program) in CommandLine() function in base::CommandLine
184 CommandLine::CommandLine(int argc, const CommandLine::CharType* const* argv) in CommandLine() function in base::CommandLine
189 CommandLine::CommandLine(const StringVector& argv) in CommandLine() function in base::CommandLine
195 CommandLine::CommandLine(const CommandLine& other) = default;
196 CommandLine::CommandLine(CommandLine&& other) noexcept in CommandLine() function in base::CommandLine
211 CommandLine& CommandLine::operator=(const CommandLine& other) = default;
212 CommandLine& CommandLine::operator=(CommandLine&& other) noexcept { in operator =()
227 CommandLine::~CommandLine() = default;
231 void CommandLine::set_slash_is_not_a_switch() { in set_slash_is_not_a_switch()
239 void CommandLine::InitUsingArgvForTesting(int argc, const char* const* argv) { in InitUsingArgvForTesting()
241 current_process_commandline_ = new CommandLine(NO_PROGRAM); in InitUsingArgvForTesting()
243 CommandLine::StringVector argv_vector; in InitUsingArgvForTesting()
251 bool CommandLine::Init(int argc, const char* const* argv) { in Init()
259 current_process_commandline_ = new CommandLine(NO_PROGRAM); in Init()
272 void CommandLine::Reset() { in Reset()
279 CommandLine* CommandLine::ForCurrentProcess() { in ForCurrentProcess()
285 bool CommandLine::InitializedForCurrentProcess() { in InitializedForCurrentProcess()
290 CommandLine CommandLine::FromArgvWithoutProgram(const StringVector& argv) { in FromArgvWithoutProgram()
291 CommandLine cmd(NO_PROGRAM); in FromArgvWithoutProgram()
298 CommandLine CommandLine::FromString(StringViewType command_line) { in FromString()
299 CommandLine cmd(NO_PROGRAM); in FromString()
305 void CommandLine::InitFromArgv(int argc, in InitFromArgv()
306 const CommandLine::CharType* const* argv) { in InitFromArgv()
313 void CommandLine::InitFromArgv(const StringVector& argv) { in InitFromArgv()
323 FilePath CommandLine::GetProgram() const { in GetProgram()
327 void CommandLine::SetProgram(const FilePath& program) { in SetProgram()
340 bool CommandLine::HasSwitch(std::string_view switch_string) const { in HasSwitch()
345 bool CommandLine::HasSwitch(const char switch_constant[]) const { in HasSwitch()
349 std::string CommandLine::GetSwitchValueASCII( in GetSwitchValueASCII()
367 FilePath CommandLine::GetSwitchValuePath(std::string_view switch_string) const { in GetSwitchValueASCII()
371 CommandLine::StringType CommandLine::GetSwitchValueNative( in GetSwitchValueASCII()
378 void CommandLine::AppendSwitch(std::string_view switch_string) { in GetSwitchValueASCII()
382 void CommandLine::AppendSwitchPath(std::string_view switch_string, in GetSwitchValueASCII()
387 void CommandLine::AppendSwitchNative(std::string_view switch_string, in GetSwitchValueASCII()
388 CommandLine::StringViewType value) { in GetSwitchValueASCII()
420 void CommandLine::AppendSwitchASCII(std::string_view switch_string, in GetSwitchValueASCII()
431 void CommandLine::RemoveSwitch(std::string_view switch_key_without_prefix) { in GetSwitchValueASCII()
465 void CommandLine::CopySwitchesFrom(const CommandLine& source, in GetSwitchValueASCII()
474 CommandLine::StringVector CommandLine::GetArgs() const { in GetSwitchValueASCII()
484 void CommandLine::AppendArg(std::string_view value) { in GetSwitchValueASCII()
495 void CommandLine::AppendArgPath(const FilePath& path) { in GetSwitchValueASCII()
499 void CommandLine::AppendArgNative(StringViewType value) { in GetSwitchValueASCII()
506 void CommandLine::AppendArguments(const CommandLine& other, in GetSwitchValueASCII()
515 void CommandLine::PrependWrapper(StringViewType wrapper) { in GetSwitchValueASCII()
539 void CommandLine::ParseFromString(StringViewType command_line) { in GetSwitchValueASCII()
577 void CommandLine::AppendSwitchesAndArguments(span<const StringType> argv) { in GetSwitchValueASCII()
584 arg = CommandLine::StringType(TrimWhitespace(arg, TRIM_ALL)); in GetSwitchValueASCII()
589 CommandLine::StringType switch_string; in GetSwitchValueASCII()
590 CommandLine::StringType switch_value; in GetSwitchValueASCII()
611 CommandLine::StringType CommandLine::GetArgumentsStringInternal( in GetSwitchValueASCII()
656 CommandLine::StringType CommandLine::GetCommandLineString() const { in GetSwitchValueASCII()
673 std::wstring CommandLine::QuoteForCommandLineToArgvW(const std::wstring& arg) { in GetSwitchValueASCII()
685 CommandLine::StringType CommandLine::GetCommandLineStringForShell() const { in GetSwitchValueASCII()
693 CommandLine::StringType in GetSwitchValueASCII()
694 CommandLine::GetCommandLineStringWithUnsafeInsertSequences() const { in GetSwitchValueASCII()
709 CommandLine::StringType CommandLine::GetArgumentsString() const { in GetSwitchValueASCII()
714 void CommandLine::ParseAsSingleArgument( in GetSwitchValueASCII()
715 const CommandLine::StringType& single_arg_switch) { in GetSwitchValueASCII()
743 void CommandLine::DetachFromCurrentSequence() { in GetSwitchValueASCII()