Home | History | Annotate | Download | only in base

Lines Matching refs: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];
84 CommandLine::StringType switch_string;
85 CommandLine::StringType switch_value;
152 CommandLine::CommandLine(NoProgram /* no_program */)
157 CommandLine::CommandLine(const FilePath& program)
163 CommandLine::CommandLine(int argc, const CommandLine::CharType* const* argv)
169 CommandLine::CommandLine(const StringVector& argv)
175 CommandLine::CommandLine(const CommandLine& other)
182 CommandLine& CommandLine::operator=(const CommandLine& other) {
190 CommandLine::~CommandLine() {
195 void CommandLine::set_slash_is_not_a_switch() {
203 bool CommandLine::Init(int argc, const char* const* argv) {
211 current_process_commandline_ = new CommandLine(NO_PROGRAM);
222 void CommandLine::Reset() {
229 CommandLine* CommandLine::ForCurrentProcess() {
235 bool CommandLine::InitializedForCurrentProcess() {
241 CommandLine CommandLine::FromString(const string16& command_line) {
242 CommandLine cmd(NO_PROGRAM);
248 void CommandLine::InitFromArgv(int argc,
249 const CommandLine::CharType* const* argv) {
256 void CommandLine::InitFromArgv(const StringVector& argv) {
265 FilePath CommandLine::GetProgram() const {
269 void CommandLine::SetProgram(const FilePath& program) {
277 bool CommandLine::HasSwitch(const base::StringPiece& switch_string) const {
283 bool CommandLine::HasSwitch(const char switch_constant[]) const {
287 std::string CommandLine::GetSwitchValueASCII(
301 FilePath CommandLine::GetSwitchValuePath(
306 CommandLine::StringType CommandLine::GetSwitchValueNative(
314 void CommandLine::AppendSwitch(const std::string& switch_string) {
318 void CommandLine::AppendSwitchPath(const std::string& switch_string,
323 void CommandLine::AppendSwitchNative(const std::string& switch_string,
324 const CommandLine::StringType& value) {
347 void CommandLine::AppendSwitchASCII(const std::string& switch_string,
356 void CommandLine::CopySwitchesFrom(const CommandLine& source,
365 CommandLine::StringVector CommandLine::GetArgs() const {
376 void CommandLine::AppendArg(const std::string& value) {
385 void CommandLine::AppendArgPath(const FilePath& path) {
389 void CommandLine::AppendArgNative(const CommandLine::StringType& value) {
393 void CommandLine::AppendArguments(const CommandLine& other,
400 void CommandLine::PrependWrapper(const CommandLine::StringType& wrapper) {
414 void CommandLine::ParseFromString(const string16& command_line) {
431 CommandLine::StringType CommandLine::GetCommandLineStringInternal(
445 CommandLine::StringType CommandLine::GetArgumentsStringInternal(
476 void CommandLine::ResetStringPieces() {