/// <summary> Succeed with match length 1 /// if the current character in the input is among the given characters. /// </summary> /// <param name="cs">the characters to compare with. /// </param> /// <returns> the Pattern object. /// </returns> public static Pattern Among(params char[] cs) { return(IsChar(CharPredicates.Among(cs))); }
static Scanner _among(char[] chars, string expected_name) { return(IsChar(CharPredicates.Among(chars), expected_name).Rename("among")); }