ICU-8036 Fixed supplementary issue.

X-SVN-Rev: 28806
This commit is contained in:
Mark Davis 2010-10-13 06:06:49 +00:00
parent db32e2a441
commit e83ac112e0

View File

@ -578,8 +578,10 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
* string to the given <code>StringBuffer</code>.
*/
private static void _appendToPat(StringBuffer buf, String s, boolean escapeUnprintable) {
for (int i = 0; i < s.length(); i += UTF16.getCharCount(i)) {
_appendToPat(buf, UTF16.charAt(s, i), escapeUnprintable);
int cp;
for (int i = 0; i < s.length(); i += Character.charCount(cp)) {
cp = s.codePointAt(i);
_appendToPat(buf, cp, escapeUnprintable);
}
}