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