public override int Match(MatchContent content) { if (content.EndOfString()) { return(NotMatch); } return(content.GetCurrentChar() == _ch ? 1 : NotMatch); }
public override int Match(MatchContent content) { if (content.EndOfString()) { return(NotMatch); } var ch = content.GetCurrentChar(); return(ch >= _start && ch <= _end ? 1 : NotMatch); }
public override int Match(MatchContent content) { return(content.EndOfString() ? NotMatch : 1); }