Home | History | Annotate | Download | only in base

Lines Matching full:commandline

25 CommandLine* CommandLine::current_process_commandline_ = NULL;
28 const CommandLine::CharType kSwitchTerminator[] = FILE_PATH_LITERAL("--");
29 const CommandLine::CharType kSwitchValueSeparator[] = FILE_PATH_LITERAL("=");
37 const CommandLine::CharType* const kSwitchPrefixes[] = {L"--", L"-", L"/"};
40 const CommandLine::CharType* const kSwitchPrefixes[] = {"--", "-"};
44 size_t GetSwitchPrefixLength(const CommandLine::StringType& string) {
46 CommandLine::StringType prefix(kSwitchPrefixes[i]);
55 bool IsSwitch(const CommandLine::StringType& string,
56 CommandLine::StringType* switch_string,
57 CommandLine::StringType* switch_value) {
66 if (equals_position != CommandLine::StringType::npos)
72 void AppendSwitchesAndArguments(CommandLine& command_line,
73 const CommandLine::StringVector& argv) {
76 CommandLine::StringType arg = argv[i];
79 CommandLine::StringType switch_string;
80 CommandLine::StringType switch_value;
151 CommandLine::CommandLine(NoProgram no_program)
156 CommandLine::CommandLine(const FilePath& program)
162 CommandLine::CommandLine(int argc, const CommandLine::CharType* const* argv)
168 CommandLine::CommandLine(const StringVector& argv)
174 CommandLine::~CommandLine() {
179 void CommandLine::set_slash_is_not_a_switch() {
187 bool CommandLine::Init(int argc, const char* const* argv) {
195 current_process_commandline_ = new CommandLine(NO_PROGRAM);
206 void CommandLine::Reset() {
213 CommandLine* CommandLine::ForCurrentProcess() {
219 bool CommandLine::InitializedForCurrentProcess() {
225 CommandLine CommandLine::FromString(const std::wstring& command_line) {
226 CommandLine cmd(NO_PROGRAM);
232 void CommandLine::InitFromArgv(int argc,
233 const CommandLine::CharType* const* argv) {
240 void CommandLine::InitFromArgv(const StringVector& argv) {
248 CommandLine::StringType CommandLine::GetCommandLineString() const {
261 CommandLine::StringType CommandLine::GetArgumentsString() const {
291 FilePath CommandLine::GetProgram() const {
295 void CommandLine::SetProgram(const FilePath& program) {
299 bool CommandLine::HasSwitch(const std::string& switch_string) const {
303 std::string CommandLine::GetSwitchValueASCII(
317 FilePath CommandLine::GetSwitchValuePath(
322 CommandLine::StringType CommandLine::GetSwitchValueNative(
329 void CommandLine::AppendSwitch(const std::string& switch_string) {
333 void CommandLine::AppendSwitchPath(const std::string& switch_string,
338 void CommandLine::AppendSwitchNative(const std::string& switch_string,
339 const CommandLine::StringType& value) {
357 void CommandLine::AppendSwitchASCII(const std::string& switch_string,
366 void CommandLine::CopySwitchesFrom(const CommandLine& source,
375 CommandLine::StringVector CommandLine::GetArgs() const {
386 void CommandLine::AppendArg(const std::string& value) {
395 void CommandLine::AppendArgPath(const FilePath& path) {
399 void CommandLine::AppendArgNative(const CommandLine::StringType& value) {
403 void CommandLine::AppendArguments(const CommandLine& other,
410 void CommandLine::PrependWrapper(const CommandLine::StringType& wrapper) {
423 void CommandLine::ParseFromString(const std::wstring& command_line) {