Exemplo n.º 1
0
 public void CaptureCurrent()
 {
     if (-1 < Current)
     {
         CaptureBuffer.Append((char)Current);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Captures the current character under the cursor, if any
 /// </summary>
 public void Capture()
 {
     _CheckDisposed();
     if (EndOfInput != _current && BeforeInput != _current)
     {
         CaptureBuffer.Append((char)_current);
     }
 }
Exemplo n.º 3
0
 /// <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);
     }
 }