match method

bool match(
  1. String c
)

Implementation

bool match(String c) {
  if (i < s.length && s[i] == c) {
    i++;
    return true;
  }
  return false;
}