Ejemplo n.º 1
0
 public static IEnumerable <string> GetCharsetNames(this CharsetNode that)
 {
     return(that.Visit(new CharsetHandleVisitor <string>(), handle => {
         if (handle is RangeSetHandle.Named named)
         {
             return named.Name.Yield();
         }
         return Enumerable.Empty <string>();
     }));
 }
Ejemplo n.º 2
0
 public static RangeSet <TChar> Compute <TChar>(this CharsetNode that, IRangeSetProvider <TChar> provider)
     where TChar : IComparable <TChar>
 {
     return(that.Visit(new CharsetComputer <TChar>(), provider));
 }