diff --git a/classpath/java/lang/Character.java b/classpath/java/lang/Character.java index a69140562f..8d49043fd4 100644 --- a/classpath/java/lang/Character.java +++ b/classpath/java/lang/Character.java @@ -170,6 +170,10 @@ public final class Character implements Comparable { 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; }