Exemplo n.º 1
0
 public byte[] HorizontalVerticalSkip(int many, SkipType type)
 {
     if (many < 0 || many > 127)
     {
         throw new ArgumentOutOfRangeException("Expected range: 0 <= many <= 127");
     }
     return(new[] { AsciiTable.ESC, AsciiTable.f, (byte)many, (byte)type });
 }
Exemplo n.º 2
0
 public void SkipLineBreaks(SkipType type)
 {
     do
     {
         char c0 = Peek();
         char c1 = Peek(1);
         if (c0 == InvalidCharacter)
         {
             break;
         }
         else if (SyntaxUtils.IsLineBreak(c0))
         {
             int lb = SyntaxUtils.GetLineBreakChars(c0, c1);
             AdvanceLine(lb);
         }
         else
         {
             break;
         }
     } while (!IsEOF && type == SkipType.All);
 }
Exemplo n.º 3
0
 public void SkipSpacings(SkipType type)
 {
     do
     {
         char c = Peek();
         if (c == InvalidCharacter)
         {
             break;
         }
         else if (c == '\t')
         {
             AdvanceTab();
         }
         else if (SyntaxUtils.IsSpacing(c))
         {
             AdvanceColumn();
         }
         else
         {
             break;
         }
     } while (!IsEOF && type == SkipType.All);
 }