ICU-5362 remove API

X-SVN-Rev: 20229
This commit is contained in:
Ram Viswanadha 2006-09-01 20:12:54 +00:00
parent d42b09fe1b
commit 16c599e73d

View File

@ -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");
}
}