示例#1
0
 public void CaptureCurrent()
 {
     if (-1 < Current)
     {
         CaptureBuffer.Append((char)Current);
     }
 }
示例#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);
     }
 }
示例#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);
     }
 }