String[] n = new String[(remainder > 0 ? count + 1 : count)];
int pos = 0;
for (int i = 0; i < count; i++) {
StringBuilder bld = new StringBuilder(ngramSize);
for (int j = 0; j < ngramSize; j++) {
<BUG>int next = text.codePointAt(pos);
pos += Character.charCount(next);</BUG>
bld.appendCodePoint(next);
}
n[i] = bld.toString();

String[] n = new String[(remainder > 0 ? count + 1 : count)];
int pos = 0;
for (int i = 0; i < count; i++) {
StringBuilder bld = new StringBuilder(ngramSize);
for (int j = 0; j < ngramSize; j++) {
int next = Character.toLowerCase(text.codePointAt(pos));
pos += Character.charCount(next);
bld.appendCodePoint(next);
}
n[i] = bld.toString();
