bool i_to_branch(string * il, string * outst) { string branch; string temp=StringToUpper((*il)); if (temp.substr(0,1)=="I") { int apos = temp.find_first_of("(", temp.size()); int bpos = temp.find_last_of(")", temp.size()); if((apos>=0)&& (bpos>=0)) branch=temp.substr(apos,bpos); else return false; *outst=branch; return true; } }