public bool CurrentEqualTo(string rother, StringComparison comp) { if (CurrentPosition + rother.Length > RowString.Length) { return(false); } var sub = RowString.Substring(CurrentPosition, rother.Length); return(sub.Equals(rother, comp)); }
public string Substring(int start, int length) { if (start >= RowString.Length || length == 0) { return(""); } if (start + length > RowString.Length) { length = RowString.Length - start; } return(RowString.Substring(start, length)); }
public string Substring() { if (CurrentPosition >= RowString.Length) { return(""); } if (CurrentPosition == 0) { return(RowString); } return(RowString.Substring(CurrentPosition)); }