private void checkHexDigit ( int c ) throws IOException { if ( c >= ' ' && c <= ' ' ) { return ; } if ( c >= ' ' && c <= ' ' ) { return ; } if ( c >= ' ' && c <= ' ' ) { return ; } // Causes the invalid escape to be skipped hasNextChar = true ; nextChar = c ; throw new IOException ( "Did not find four digit hex character code." + " line: " + lexer . getLine ( ) + " col:" + lexer . getColumn ( ) ) ; }
Checks that the given character is indeed a hex digit .