death to unicode

This commit is contained in:
Willem Cazander 2022-10-16 15:55:25 +02:00
parent 023710722c
commit 555a59080b
4 changed files with 147 additions and 111 deletions

View file

@ -395,6 +395,10 @@ public enum UnicodePlane {
return getStart() < 0xFFFF;
}
public boolean isPlaneValid() {
return this != UNKNOWN;
}
public static UnicodePlane valueOfUnicode(int unicode) {
for (UnicodePlane value:values()) {
if (unicode >= value.getStart() && unicode <= value.getStop()) {