isCodePointInRanges static method

bool isCodePointInRanges(
  1. int codePoint,
  2. List<List<int>> multipleRanges
)

Multiple ranges version of isCodePointInRange. Assumes multipleRanges only contains lists that are two element list of integers.

Implementation

static bool isCodePointInRanges(
    int codePoint, List<List<int>> multipleRanges) {
  for (List<int> ranges in multipleRanges) {
    if (isCodePointInRange(codePoint, ranges)) {
      return true;
    }
  }
  return false;
}