Lines Matching defs:string

49 size_t GetSwitchPrefixLength(const CommandLine::StringType& string) {
52 if (string.compare(0, prefix.length(), prefix) == 0)
58 // Fills in |switch_string| and |switch_value| if |string| is a switch.
60 bool IsSwitch(const CommandLine::StringType& string,
65 size_t prefix_length = GetSwitchPrefixLength(string);
66 if (prefix_length == 0 || prefix_length == string.length())
69 const size_t equals_position = string.find(kSwitchValueSeparator);
70 *switch_string = string.substr(0, equals_position);
72 *switch_value = string.substr(equals_position + 1);
109 // Quote a string as necessary for CommandLineToArgvW compatibility *on
117 // line as a placeholder. (It may be substituted for a string with spaces.)
136 // Since we also will end the string with a double quote, we escape for
137 // either a double quote or the end of the string.
189 std::string CommandLine::StringTypeToUTF8(const StringType& input) {
220 std::string CommandLine::StringTypeToUTF8(const StringType& input) {
319 std::string CommandLine::GetSwitchValueString(
344 std::vector<std::string> CommandLine::GetSwitchValueStrings(
348 std::vector<std::string> result;
370 void CommandLine::AppendSwitch(const std::string& switch_string) {
374 void CommandLine::AppendSwitchPath(const std::string& switch_string,
379 void CommandLine::AppendSwitchNative(const std::string& switch_string,
382 const std::string switch_key = ToLowerASCII(switch_string);
385 const std::string& switch_key = switch_string;
401 void CommandLine::AppendSwitch(const std::string& switch_string,
402 const std::string& value_string) {
426 void CommandLine::AppendArg(const std::string& value) {
490 StringType string(argv_[0]);
492 string = QuoteForCommandLineToArgvW(string, quote_placeholders);
496 string.append(StringType(FILE_PATH_LITERAL(" ")));
497 string.append(params);
499 return string;