integer CmdLineIterator::getNextNumber(natural base) { ConstStrW text = getNextText(); integer out; if (!parseSignedNumber(text.getFwIter(),out,base)) { throw InvalidNumberFormatException(THISLOCATION,text); } return out; }
cbool parseLexSignedNumber( parse *p, int *n ) { return ( parseSpaceAndComments( p ) && parseSignedNumber( p, n ) ); }