death to unicode
This commit is contained in:
parent
023710722c
commit
555a59080b
4 changed files with 147 additions and 111 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue