16 std::list<PString> argList;
17 for(
int i(0); i < argc; ++i){
18 argList.push_back(
PString(argv[i]));
30 std::list<PString>::const_iterator itArg(listArg.begin());
31 while(itArg != listArg.end() && isSearch){
32 std::list<PString>::const_iterator itCheck(argCheckList.begin());
33 while(itCheck != argCheckList.end() && isSearch){
34 isSearch = *itArg != *itCheck;
48 std::list<PString> argCheckList;
49 argCheckList.push_back(arg1);
60 std::list<PString> argCheckList;
61 argCheckList.push_back(arg1);
62 argCheckList.push_back(arg2);
72 for(std::list<PString>::const_iterator itArg(listArg.begin()); itArg != listArg.end(); ++itArg){
73 body += itArg->
escapeStr(
" '\"",
"\\") +
" ";
83 if(listArg.size() != 0lu){
return listArg.front();}
91 if(listArg.size() != 0lu){
PString escapeStr(const PString &strCharToEscape, const PString &escapeSeq) const
Escape given string with passed characters.
void phoenix_rmProgramCall(std::list< PString > &listArg)
Remove the program call from the list of argument.
bool phoenix_isOptionExist(const std::list< PString > &listArg, const std::list< PString > &argCheckList)
Check if one of the two passed arguments are in the list of arguments.
PString phoenix_getProgramCall(const std::list< PString > &listArg)
Get the program call.
std::list< PString > phoenix_getArgumentList(int argc, char **argv)
Convert the list of given arguments to the program into a list of string.
PString phoenix_listArgToString(const std::list< PString > &listArg)
Convert the given list of arguement into a string.