All pastes #78694 Raw Edit

Stuff

public text v1 · immutable
·published 2006-07-04 13:04 UTC
rendered paste body
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;
            }
    }