Return Character.SURROGATE from Character.getType when actually

surrogate code point was specified
This commit is contained in:
Alexey Andreev 2015-06-20 22:51:33 +03:00
parent 48d2732acc
commit ec463124c9

View File

@ -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;