public void CaptureCurrent() { if (-1 < Current) { CaptureBuffer.Append((char)Current); } }
/// <summary> /// Captures the current character under the cursor, if any /// </summary> public void Capture() { _CheckDisposed(); if (EndOfInput != _current && BeforeInput != _current) { CaptureBuffer.Append((char)_current); } }
/// <summary> /// Captures the current character if available /// </summary> public void CaptureCurrent() { _CheckDisposed(); if (-2 == Current) { throw new InvalidOperationException("The parse context has not been started."); } if (-1 != Current) { CaptureBuffer.Append((char)Current); } }