fastParse method
Parses the input and returns true
if successful, false
otherwise.
Implementation
@override
bool fastParse(State<StringReader> state) {
final input = state.input;
while (state.pos < input.length) {
final pos = state.pos;
var c = -1;
while (state.pos < input.length) {
c = input.readChar(state.pos);
final ok = isNormalChar(c);
if (!ok) {
break;
}
state.pos += input.count;
}
if (c != controlChar) {
break;
}
state.pos += 1;
final r = escapeChar.fastParse(state);
if (!r) {
state.pos = pos;
break;
}
}
return true;
}