Пример #1
0
 /// <summary> Succeed with match length 1
 /// if the current character in the input is not among the given characters.
 /// </summary>
 /// <param name="cs">the characters to compare with.
 /// </param>
 /// <returns> the Pattern object.
 /// </returns>
 public static Pattern NotAmong(params char[] cs)
 {
     return(IsChar(CharPredicates.NotAmong(cs)));
 }
Пример #2
0
 static Scanner _notAmong(char[] chars, string expected_name)
 {
     return(IsChar(CharPredicates.NotAmong(chars), expected_name).Rename("not among"));
 }