contains method

bool contains(
  1. int codePoint
)

Returns whether the character set contains the given code point or not.

Implementation

bool contains(int codePoint) {
  for (final range in _ranges) {
    if (range.start <= codePoint && codePoint <= range.end) {
      return true;
    }
  }
  return false;
}