Tokenizes a string of Windows command line arguments, which may contain quotes and escaped quotes.
Declared in <llvm/Support/CommandLine.h>
void
TokenizeWindowsCommandLine(
StringRef Source,
StringSaver& Saver,
SmallVectorImpl<char const*>& NewArgv,
bool MarkEOLs = false);
See MSDN docs for CommandLineToArgvW for information on the quoting rules. http://msdn.microsoft.com/en-us/library/windows/desktop/17w5ykft(v=vs.85).aspx
For handling a full Windows command line including the executable name at the start, see TokenizeWindowsCommandLineFull below.
| Name | Description |
|---|---|
| Source [in] | The string to be split on whitespace with quotes. |
| Saver [in] | Delegates back to the caller for saving parsed strings. |
| MarkEOLs [in] | true if tokenizing a response file and you want end of lines and end of the response file to be marked with a nullptr string. |
| NewArgv [out] | All parsed strings are appended to NewArgv. |