Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
 public string Substring()
 {
     if (CurrentPosition >= RowString.Length)
     {
         return("");
     }
     if (CurrentPosition == 0)
     {
         return(RowString);
     }
     return(RowString.Substring(CurrentPosition));
 }