static CharSequenceAdapter copy(CharSequenceAdapter other)
 {
     CharSequenceAdapter buf = new CharSequenceAdapter(other.sequence);
     buf._flimit = other._flimit;
     buf._fposition = other._fposition;
     buf._fmark = other._fmark;
     return buf;
 }
Exemple #2
0
        static CharSequenceAdapter copy(CharSequenceAdapter other)
        {
            CharSequenceAdapter buf = new CharSequenceAdapter(other.sequence);

            buf._flimit    = other._flimit;
            buf._fposition = other._fposition;
            buf._fmark     = other._fmark;
            return(buf);
        }
Exemple #3
0
        public override global::System.Object subSequence(int start, int end)
        {
            if (end < start || start < 0 || end > remaining())
            {
                throw new System.IndexOutOfRangeException();
            }

            CharSequenceAdapter result = copy(this);

            result._fposition = _fposition + start;
            result._flimit    = _fposition + end;
            return(result);
        }