Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Commandlets > UCommandlet > ParseCommandLine
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Commandlets/Commandlet.h |
Include | #include "Commandlets/Commandlet.h" |
static void ParseCommandLine
&40;
const TCHAR &42; CmdLine,
TArray< FString > & Tokens,
TArray< FString > & Switches,
TMap< FString, FString > & Params
&41;
Remarks
Parses a string into tokens, separating switches (beginning with - or /) from other parameters
Parameters
Name | Description |
---|---|
CmdLine | the string to parse |
Tokens | [out] filled with all parameters found in the string |
Switches | [out] filled with all switches found in the string |
Params | [out] filled with all switches found in the string with the format key=value |