Example #1
0
 public static bool IsCloser(char c, DelimitType dt)
 {
     return
         ((dt.HasFlag(DelimitType.Paranthesis) && c == ')') ||
          (dt.HasFlag(DelimitType.Bracket) && c == ']') ||
          (dt.HasFlag(DelimitType.Curly) && c == '}') ||
          (dt.HasFlag(DelimitType.Angled) && c == '>'));
 }
Example #2
0
 public static bool IsOpener(char c, DelimitType dt)
 {
     return
         ((dt.HasFlag(DelimitType.Paranthesis) && c == '(') ||
          (dt.HasFlag(DelimitType.Bracket) && c == '[') ||
          (dt.HasFlag(DelimitType.Curly) && c == '{') ||
          (dt.HasFlag(DelimitType.Angled) && c == '<'));
 }
Example #3
0
 public static bool IsOpener(char c, DelimitType dt)
 {
     return
         (dt.HasFlag(DelimitType.Paranthesis) && c == '(') ||
         (dt.HasFlag(DelimitType.Bracket) && c == '[') ||
         (dt.HasFlag(DelimitType.Curly) && c == '{') ||
         (dt.HasFlag(DelimitType.Angled) && c == '<');
 }
Example #4
0
 public static bool IsCloser(char c, DelimitType dt)
 {
     return
         (dt.HasFlag(DelimitType.Paranthesis) && c == ')') ||
         (dt.HasFlag(DelimitType.Bracket) && c == ']') ||
         (dt.HasFlag(DelimitType.Curly) && c == '}') ||
         (dt.HasFlag(DelimitType.Angled) && c == '>');
 }