private string PreviewZone(ISourceStream source, int index) { source.PreviewPosition++; source.IsDigit(1, 2); source.IsChar(':'); source.IsDigit(1, 2); return(source.PreviewString(index)); }
private string PreivewDate(ISourceStream source) { source.IsDigit(4); source.IsChar('-'); source.IsDigit(1, 2); source.IsChar('-'); source.IsDigit(1, 2); return(source.PreviewString()); }
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()); }