mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-5362 remove API
X-SVN-Rev: 20229
This commit is contained in:
parent
d42b09fe1b
commit
16c599e73d
1 changed files with 0 additions and 14 deletions
|
@ -2850,18 +2850,4 @@ public final class UTF16
|
|||
result.append(getTrailSurrogate(ch));
|
||||
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…
Add table
Reference in a new issue