private bool IsEndQuoteEscaped(ISourceStream text, int quotePosition) { bool escaped = false; int p = quotePosition - 1; while (p > 0 && text.GetCharAt(p) == EscapeChar) { escaped = !escaped; p--; } return(escaped); }