acceptRegion method

bool acceptRegion()

Advances and returns true if current subtag is a region subtag.

Implementation

bool acceptRegion() {
  if (atEnd()) return false;
  if (!_regionRegExp.hasMatch(_current)) return false;
  advance();
  return true;
}