Lines Matching refs:string
20 #include <string>
35 // The native command line string type.
38 using StringType = std::string;
43 using SwitchMap = std::map<std::string, StringType>;
112 // Constructs and returns the represented command line string.
120 // Constructs and returns the represented command line string. Assumes the
124 // not generally safe to replace it with an arbitrary string. If possible,
126 // string.
132 // Constructs and returns the represented arguments string.
140 // Constructs and returns the represented arguments string. Assumes the
144 // safe to replace it with an arbitrary string. If possible, placeholders
145 // should be replaced *before* converting the arguments to a string.
151 // Returns the original command line string as a vector of strings.
154 // Get and Set the program part of the command line string (the first item).
167 // value or isn't present, this method returns the empty string.
169 std::string GetSwitchValueASCII(const StringPiece& switch_string) const;
178 void AppendSwitch(const std::string& switch_string);
179 void AppendSwitchPath(const std::string& switch_string,
181 void AppendSwitchNative(const std::string& switch_string,
183 void AppendSwitchASCII(const std::string& switch_string,
184 const std::string& value);
199 void AppendArg(const std::string& value);
212 // Initialize by parsing the given command line string.
213 // The program name is assumed to be the first item in the string.