ICU-8036 Fixed supplementary issue.
X-SVN-Rev: 28806
This commit is contained in:
parent
db32e2a441
commit
e83ac112e0
@ -578,8 +578,10 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
|
|||||||
* string to the given <code>StringBuffer</code>.
|
* string to the given <code>StringBuffer</code>.
|
||||||
*/
|
*/
|
||||||
private static void _appendToPat(StringBuffer buf, String s, boolean escapeUnprintable) {
|
private static void _appendToPat(StringBuffer buf, String s, boolean escapeUnprintable) {
|
||||||
for (int i = 0; i < s.length(); i += UTF16.getCharCount(i)) {
|
int cp;
|
||||||
_appendToPat(buf, UTF16.charAt(s, i), escapeUnprintable);
|
for (int i = 0; i < s.length(); i += Character.charCount(cp)) {
|
||||||
|
cp = s.codePointAt(i);
|
||||||
|
_appendToPat(buf, cp, escapeUnprintable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user