#include "hadinput.h" #include "HCommand.h" int HCommand::getIndex(HadInput & input) { HString check(input.string()); if(check.empty()) return HFAILURE; char* pNext=0; HString what(check.token(pNext,"([")); if(what.empty()) return HFAILURE; //check for end of string (no index specified) if(*pNext) { //check for wildcard [*] or (*) if(*(++pNext)!='*') arrayIndex=int(HString(pNext)); } else arrayIndex=-1; input.next(); for(keyIndex=0;keyIndex