Fan.Sys.StrBuf.getRange C# (CSharp) Méthode

getRange() public méthode

public getRange ( Range r ) : string
r Range
Résultat string
        public string getRange(Range r)
        {
            int size = sb.Length;

              int s = r.start(size);
              int e = r.end(size);
              if (e+1 < s) throw IndexErr.make(r).val;

              return sb.ToString().Substring(s, (e-s)+1);
        }