@Test public void testIsHex() { assertTrue( "", scn.isHexChar( '0' ) ); assertTrue( "", scn.isHexChar( '9' ) ); assertTrue( "", scn.isHexChar( 'A' ) ); assertTrue( "", scn.isHexChar( 'a' ) ); assertTrue( "", scn.isHexChar( 'F' ) ); assertTrue( "", scn.isHexChar( 'f' ) ); assertFalse( "", scn.isHexChar( ';' ) ); assertFalse( "", scn.isHexChar( ']' ) ); assertFalse( "", scn.isHexChar( ' ' ) ); }
boolean isHexChar( final char currentCharacter ) { final boolean isNum = currentCharacter >= '0' && currentCharacter <= '9'; final boolean isLower = currentCharacter >= 'A' && currentCharacter <= 'Z'; final boolean isUpper = currentCharacter >= 'a' && currentCharacter <= 'z'; return isNum || isLower || isUpper; }
AS3Scanner { boolean isHexChar( final char currentCharacter ) { final boolean isNum = currentCharacter >= '0' && currentCharacter <= '9'; final boolean isLower = currentCharacter >= 'A' && currentCharacter <= 'Z'; final boolean isUpper = currentCharacter >= 'a' && currentCharacter <= 'z'; return isNum || isLower || isUpper; } }
AS3Scanner { boolean isHexChar( final char currentCharacter ) { final boolean isNum = currentCharacter >= '0' && currentCharacter <= '9'; final boolean isLower = currentCharacter >= 'A' && currentCharacter <= 'Z'; final boolean isUpper = currentCharacter >= 'a' && currentCharacter <= 'z'; return isNum || isLower || isUpper; }  }
AS3Scanner { boolean isHexChar( final char currentCharacter ) { final boolean isNum = currentCharacter >= '0' && currentCharacter <= '9'; final boolean isLower = currentCharacter >= 'A' && currentCharacter <= 'Z'; final boolean isUpper = currentCharacter >= 'a' && currentCharacter <= 'z'; return isNum || isLower || isUpper; }  Token moveToNextToken(); void setLines( final String[] linesToBeSet ); }
AS3Scanner { boolean isHexChar( final char currentCharacter ) { final boolean isNum = currentCharacter >= '0' && currentCharacter <= '9'; final boolean isLower = currentCharacter >= 'A' && currentCharacter <= 'Z'; final boolean isUpper = currentCharacter >= 'a' && currentCharacter <= 'z'; return isNum || isLower || isUpper; }  Token moveToNextToken(); void setLines( final String[] linesToBeSet );  }