ICU-5362 remove API
X-SVN-Rev: 20229
This commit is contained in:
parent
d42b09fe1b
commit
16c599e73d
@ -2850,18 +2850,4 @@ public final class UTF16
|
|||||||
result.append(getTrailSurrogate(ch));
|
result.append(getTrailSurrogate(ch));
|
||||||
return result.toString();
|
return result.toString();
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* Constructs the supplementary code point and return it
|
|
||||||
* @param lead the lead surrogate
|
|
||||||
* @param trail the trail surrogate
|
|
||||||
* @return code point
|
|
||||||
*/
|
|
||||||
public static int getCodePoint(char lead, char trail){
|
|
||||||
if(isLeadSurrogate(lead)&& isTrailSurrogate(trail)){
|
|
||||||
return UCharacterProperty.getRawSupplementary(lead, trail);
|
|
||||||
}
|
|
||||||
throw new IllegalArgumentException("The lead: \\u"+Integer.toHexString(lead)+
|
|
||||||
" trail: "+Integer.toHexString(trail) +
|
|
||||||
"failed");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user