nextChar static method
Implementation
@preferInline
static int nextChar(ParseState state) {
var ch = state.ch;
var pos = state.pos;
pos += ch <= 0xffff ? 1 : 2;
state.pos = pos;
if (pos < state.length) {
ch = state.source.codeUnitAt(pos);
state.ch = ch;
if (ch < 0xD800) {
return ch;
}
return getChar32(state, pos);
}
return state.ch = eof;
}