int ch; do { ch = super.Read(); ch = super.Read(); int c2 = ch & 0x3F; ch = super.Read(); int c3 = ch & 0x3F; ch = super.Read(); int c4 = ch & 0x3F; ch = (((((c1 << 6) | c2) << 6) | c3) << 6) | c4; ch = super.Read(); int c2 = ch & 0x3F; ch = super.Read(); int c3 = ch & 0x3F; ch = (((c1 << 6) | c2) << 6) | c3; ch = super.Read(); int c2 = ch & 0x3F; ch = (c1 << 6) | c2;
int ch; do { ch = super.Read(); ch = super.Read(); int c2 = ch & 0x3F; ch = super.Read(); int c3 = ch & 0x3F; ch = super.Read(); int c4 = ch & 0x3F; ch = (((((c1 << 6) | c2) << 6) | c3) << 6) | c4; ch = super.Read(); int c2 = ch & 0x3F; ch = super.Read(); int c3 = ch & 0x3F; ch = (((c1 << 6) | c2) << 6) | c3; ch = super.Read(); int c2 = ch & 0x3F; ch = (c1 << 6) | c2;
public int Peek() { int curPos = getPos(); int ch = Read(); setPos(curPos); return ch; }
public int Peek() { int curPos = getPos(); int ch = Read(); setPos(curPos); return ch; }
void NextCh() { if (oldEols > 0) { ch = EOL; oldEols--; } else { pos = buffer.getPos(); // buffer reads unicode chars, if UTF8 has been detected ch = buffer.Read(); col++; charPos++; // replace isolated '\r' by '\n' in order to make // eol handling uniform across Windows, Unix and Mac if (ch == '\r' && buffer.Peek() != '\n') ch = EOL; if (ch == EOL) { line++; col = 0; } } }
void NextCh() { if (oldEols > 0) { ch = EOL; oldEols--; } else { pos = buffer.getPos(); // buffer reads unicode chars, if UTF8 has been detected ch = buffer.Read(); col++; charPos++; // replace isolated '\r' by '\n' in order to make // eol handling uniform across Windows, Unix and Mac if (ch == '\r' && buffer.Peek() != '\n') ch = EOL; if (ch == EOL) { line++; col = 0; } } }
public String GetString(int beg, int end) { int len = 0; char[] buffer = new char[end - beg]; int oldPos = getPos(); setPos(beg); while (getPos() < end) buffer[len++] = (char) Read(); setPos(oldPos); return new String(buffer, 0, len); }
public String GetString(int beg, int end) { int len = 0; char[] buffer = new char[end - beg]; int oldPos = getPos(); setPos(beg); while (getPos() < end) buffer[len++] = (char) Read(); setPos(oldPos); return new String(buffer, 0, len); }