Add java.lang.Character#isISOControl(char)

... as per the public JavaDoc at

http://docs.oracle.com/javase/6/docs/api/java/lang/Character.html#isISOControl%28char%29

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin 2013-10-17 15:04:22 -05:00
parent 7aca1b1307
commit 396c0822cd

View File

@ -170,6 +170,10 @@ public final class Character implements Comparable<Character> {
return ch >= '\uDC00' && ch <= '\uDFFF';
}
public static boolean isISOControl(char ch) {
return ch <= '\u001F' || (ch >= '\u007F' && ch <= '\u009F');
}
public static int toCodePoint(char high, char low) {
return (((high & 0x3FF) << 10) | (low & 0x3FF)) + 0x10000;
}