src/share/classes/sun/font/FontRunIterator.java

Print this page

        

*** 138,152 **** static final int LEAD_SURROGATE_SHIFT = 10; static final int SURROGATE_OFFSET = SURROGATE_START - (LEAD_START << LEAD_SURROGATE_SHIFT) - TAIL_START; static final int DONE = -1; ! final int nextCodePoint() { return nextCodePoint(limit); } ! final int nextCodePoint(int lim) { if (pos >= lim) { return DONE; } int ch = text[pos++]; if (ch >= LEAD_START && ch < LEAD_LIMIT && pos < lim) { --- 138,152 ---- static final int LEAD_SURROGATE_SHIFT = 10; static final int SURROGATE_OFFSET = SURROGATE_START - (LEAD_START << LEAD_SURROGATE_SHIFT) - TAIL_START; static final int DONE = -1; ! int nextCodePoint() { return nextCodePoint(limit); } ! int nextCodePoint(int lim) { if (pos >= lim) { return DONE; } int ch = text[pos++]; if (ch >= LEAD_START && ch < LEAD_LIMIT && pos < lim) {
*** 157,167 **** } } return ch; } ! final void pushback(int ch) { if (ch >= 0) { if (ch >= 0x10000) { pos -= 2; } else { pos -= 1; --- 157,167 ---- } } return ch; } ! void pushback(int ch) { if (ch >= 0) { if (ch >= 0x10000) { pos -= 2; } else { pos -= 1;