scanChar method
- int character
override
If the next character in the string is character
, consumes it.
If character
is a Unicode code point in a supplementary plane, this will
consume two code units. Dart's string representation is UTF-16, which
represents supplementary-plane code units as two code units.
Returns whether or not character
was consumed.
Implementation
@override
bool scanChar(int character) {
if (!super.scanChar(character)) return false;
_adjustLineAndColumn(character);
return true;
}