mirror of
https://github.com/konsoletyper/teavm.git
synced 2025-01-24 10:44:13 +08:00
Return Character.SURROGATE from Character.getType when actually
surrogate code point was specified
This commit is contained in:
parent
48d2732acc
commit
ec463124c9
@ -395,6 +395,9 @@ public class TCharacter extends TObject implements TComparable<TCharacter> {
|
||||
}
|
||||
|
||||
public static int getType(int codePoint) {
|
||||
if (isBmpCodePoint(codePoint) && isSurrogate((char)codePoint)) {
|
||||
return SURROGATE;
|
||||
}
|
||||
UnicodeHelper.Range[] classes = getClasses();
|
||||
int l = 0;
|
||||
int u = classes.length - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user