Lines Matching defs:CommandLine

25 CommandLine* CommandLine::current_process_commandline_ = NULL;
29 const CommandLine::CharType kSwitchTerminator[] = FILE_PATH_LITERAL("--");
30 const CommandLine::CharType kSwitchValueSeparator[] = FILE_PATH_LITERAL("=");
38 const CommandLine::CharType* const kSwitchPrefixes[] = {L"--", L"-", L"/"};
41 const CommandLine::CharType* const kSwitchPrefixes[] = {"--", "-"};
45 size_t GetSwitchPrefixLength(const CommandLine::StringType& string) {
47 CommandLine::StringType prefix(kSwitchPrefixes[i]);
56 bool IsSwitch(const CommandLine::StringType& string,
57 CommandLine::StringType* switch_string,
58 CommandLine::StringType* switch_value) {
67 if (equals_position != CommandLine::StringType::npos)
73 void AppendSwitchesAndArguments(CommandLine& command_line,
74 const CommandLine::StringVector& argv) {
77 CommandLine::StringType arg = argv[i];
80 CommandLine::StringType switch_string;
81 CommandLine::StringType switch_value;
153 CommandLine::CommandLine(NoProgram no_program)
158 CommandLine::CommandLine(const FilePath& program)
164 CommandLine::CommandLine(int argc, const CommandLine::CharType* const* argv)
170 CommandLine::CommandLine(const StringVector& argv)
176 CommandLine::~CommandLine() {
181 void CommandLine::set_slash_is_not_a_switch() {
189 bool CommandLine::Init(int argc, const char* const* argv) {
197 current_process_commandline_ = new CommandLine(NO_PROGRAM);
208 void CommandLine::Reset() {
215 CommandLine* CommandLine::ForCurrentProcess() {
221 bool CommandLine::InitializedForCurrentProcess() {
227 CommandLine CommandLine::FromString(const std::wstring& command_line) {
228 CommandLine cmd(NO_PROGRAM);
234 void CommandLine::InitFromArgv(int argc,
235 const CommandLine::CharType* const* argv) {
242 void CommandLine::InitFromArgv(const StringVector& argv) {
250 CommandLine::StringType CommandLine::GetCommandLineString() const {
263 CommandLine::StringType CommandLine::GetArgumentsString() const {
293 FilePath CommandLine::GetProgram() const {
297 void CommandLine::SetProgram(const FilePath& program) {
301 bool CommandLine::HasSwitch(const std::string& switch_string) const {
305 std::string CommandLine::GetSwitchValueASCII(
319 FilePath CommandLine::GetSwitchValuePath(
324 CommandLine::StringType CommandLine::GetSwitchValueNative(
331 void CommandLine::AppendSwitch(const std::string& switch_string) {
335 void CommandLine::AppendSwitchPath(const std::string& switch_string,
340 void CommandLine::AppendSwitchNative(const std::string& switch_string,
341 const CommandLine::StringType& value) {
359 void CommandLine::AppendSwitchASCII(const std::string& switch_string,
368 void CommandLine::CopySwitchesFrom(const CommandLine& source,
377 CommandLine::StringVector CommandLine::GetArgs() const {
388 void CommandLine::AppendArg(const std::string& value) {
397 void CommandLine::AppendArgPath(const FilePath& path) {
401 void CommandLine::AppendArgNative(const CommandLine::StringType& value) {
405 void CommandLine::AppendArguments(const CommandLine& other,
412 void CommandLine::PrependWrapper(const CommandLine::StringType& wrapper) {
425 void CommandLine::ParseFromString(const std::wstring& command_line) {