Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public UnicodeRange(int from, int to, UnicodeRangeFilterType type)
 {
     this.type = type;
     this.from = from;
     this.to   = to;
 }