FACT++
1.0
|
map< string, string > Tools::Split | ( | std::string & | opt, |
bool | allow = false |
||
) |
Splits a string into a filename and command line arguments, like:
file.txt arg1=argument1 arg2="argument 2" arg3="argument \"3""
'file.txt' will be returned on opt, the arguments will be returned in the returned map.
If the returned file name is empty, an error has occured: If the map is also empty the file name was empty, if the map has one entry then for this entry the equal sign was missing.
Definition at line 230 of file tools.cc.
Referenced by FactGui::FactGui(), SkypeClient::HandleConnect(), SkypeClient::HandleDBusMessage(), DimLoggerCheck::Handler(), ConnectionGPS::ParseAnswer(), Readline::Process(), RemoteControl< Shell >::Process(), and StateMachineDimControl::StartScript().