44 string::size_type
x = pname.find(
"/");
47 return(pname.substr(pname.find_last_of(
"/")+1));
61 CheckOps(
const vector<string> &args,
string &badop)
63 vector<string>::const_iterator ai = args.begin();
65 while(ai != args.end()){
72 option_string = (*ai).substr(2);
77 if(oi->longop() == option_string)
81 if((*ai)[1] == oi->shortop())
97 GetOp(
const string &ops,
const vector<string> &args)
109 vector<string>::const_iterator ai = args.begin();
110 while(ai != args.end()){
113 if((*ai)[1] == oi->shortop()){
117 else if((*ai)[1] ==
'-'){
118 string op((*ai).substr(2));
119 if(op == oi->longop()){
132 GetOp(
const string &ops,
string &rv,
const vector<string> &args)
146 vector<string>::const_iterator ai = args.begin();
147 while(ai != args.end()){
150 if((*ai)[1] == oi->shortop()){
161 else if((*ai)[1] ==
'-'){
162 string op((*ai).substr(2));
163 if(op == oi->longop()){
184 vector<string> retVal;
187 retVal.push_back(in[i++]);
194 vector<string> retVal;
195 if(n <= 0)
return retVal;
197 while((in[i] != NULL) && i < n)
198 retVal.push_back(in[i++]);
const string stripdir(const string &)
bool GetOp(const string &ops, const vector< string > &args)
void AddOp(const string &lo, const char &so)
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do so
bool CheckOps(const vector< string > &args, string &badop)
list< clop > cloption_list
vector< string > Vectize(const char **)