public static bool Contains(UnicodeRangeFilterType mask, char c) { for (int i = 0; i < unicodeRanges.Length; i++) { UnicodeRange range = _unicodeRanges[i]; if (IntBitFlags.HasFlag((int)mask, (int)range.type)) { if (range.Contains(c)) { return(true); } } } return(false); }
public UnicodeRange(int from, int to, UnicodeRangeFilterType type) { this.type = type; this.from = from; this.to = to; }