Example #1
0
 private string PreviewZone(ISourceStream source, int index)
 {
     source.PreviewPosition++;
     source.IsDigit(1, 2);
     source.IsChar(':');
     source.IsDigit(1, 2);
     return(source.PreviewString(index));
 }
Example #2
0
 private string PreivewDate(ISourceStream source)
 {
     source.IsDigit(4);
     source.IsChar('-');
     source.IsDigit(1, 2);
     source.IsChar('-');
     source.IsDigit(1, 2);
     return(source.PreviewString());
 }
Example #3
0
 private string PreivewTime(ISourceStream source, int index = -1)
 {
     source.IsDigit(1, 2);
     source.IsChar(':');
     source.IsDigit(1, 2);
     source.IsChar(':');
     source.IsDigit(1, 2);
     if (source.PreviewChar == '.')
     {
         source.PreviewPosition++;
         source.IsDigit(1, 12);
     }
     if (index > -1)
     {
         return(source.PreviewString(index));
     }
     return(source.PreviewString());
 }