/// <summary> /// Require that the text starting at the current position matches a pattern which is bounded by /// a specific character, with the inner value opotionally quoted with a quote character ' or ". /// </summary> /// /// <param name="bound"> /// The bounding character. /// </param> /// <param name="allowQuoting"> /// (optional) the allow quoting. /// </param> /// /// <returns> /// The current string scanner. /// </returns> public IStringScanner ExpectBoundedBy(char bound, bool allowQuoting = false) { var boundedBy = new Patterns.Bounded(); boundedBy.BoundStart = bound.ToString(); boundedBy.HonorInnerQuotes = allowQuoting; return(Expect(boundedBy)); }
public IStringScanner ExpectBoundedBy(string start, string end, bool allowQuoting = false) { var boundedBy = new Patterns.Bounded(); boundedBy.BoundStart = start; boundedBy.BoundEnd = end; boundedBy.HonorInnerQuotes = allowQuoting; return(Expect(boundedBy)); }