mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
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:
parent
7aca1b1307
commit
396c0822cd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user