@Override public boolean skipTo(@NotNull StopCharTester tester) { if (remaining() <= 0) { return false; } do { int ch = readByte(); if (tester.isStopChar(ch)) return true; } while (remaining() > 0); return false; }
case 7: if (tester.isStopChar(c)) return; appendable.append((char) c); int c2 = (char) (((c & 0x1F) << 6) | (char2 & 0x3F)); if (tester.isStopChar(c2)) return; appendable.append((char) c2); ((char2 & 0x3F) << 6) | (char3 & 0x3F)); if (tester.isStopChar(c3)) return; appendable.append((char) c3);
private void readUTF0(@NotNull Appendable appendable, @NotNull StopCharTester tester) throws IOException { while (remaining() > 0) { int c = readByte(); if (c < 0) { position(position() - 1); break; } if (tester.isStopChar(c)) return; appendable.append((char) c); } if (remaining() > 0) { readUTF1(appendable, tester); } }
@Override public boolean skipTo(@NotNull StopCharTester tester) { if (remaining() <= 0) { return false; } do { int ch = readByte(); if (tester.isStopChar(ch)) return true; } while (remaining() > 0); return false; }
case 7: if (tester.isStopChar(c)) return; appendable.append((char) c); int c2 = (char) (((c & 0x1F) << 6) | (char2 & 0x3F)); if (tester.isStopChar(c2)) return; appendable.append((char) c2); ((char2 & 0x3F) << 6) | (char3 & 0x3F)); if (tester.isStopChar(c3)) return; appendable.append((char) c3);
private void readUTF0(@NotNull Appendable appendable, @NotNull StopCharTester tester) throws IOException { while (remaining() > 0) { int c = readByte(); if (c < 0) { position(position() - 1); break; } if (tester.isStopChar(c)) return; appendable.append((char) c); } if (remaining() > 0) { readUTF1(appendable, tester); } }