char *PPScanHexNumber( char *p ) { char c; p += 2; // skip over the "0x" for( ;; ) { p = PPScanDigits( p ); c = tolower( *p ); if( c < 'a' || c > 'f' ) break; ++p; } p = PPScanSuffix( p ); return( p ); }
static const char *PPScanNumber( const char *p ) { p = PPScanDigits( p ); if( *p == '.' ) { p = PPScanDigits( p + 1 ); } if( *p == 'e' || *p == 'E' ) { p++; if( *p == '+' || *p == '-' ) { ++p; } p = PPScanDigits( p ); } p = PPScanSuffix( p ); return( p ); }