internal static CharSequenceAdapter copy(CharSequenceAdapter other) { CharSequenceAdapter buf = new CharSequenceAdapter(other.sequence); buf.limitJ = other.limitJ; buf.positionJ = other.positionJ; buf.markJ = other.markJ; return(buf); }
public override java.lang.CharSequence subSequence(int start, int end) { if (end < start || start < 0 || end > remaining()) { throw new java.lang.IndexOutOfBoundsException(); } CharSequenceAdapter result = copy(this); result.positionJ = positionJ + start; result.limitJ = positionJ + end; return(result); }
internal static CharSequenceAdapter copy(CharSequenceAdapter other) { CharSequenceAdapter buf = new CharSequenceAdapter(other.sequence); buf.limitJ = other.limitJ; buf.positionJ = other.positionJ; buf.markJ = other.markJ; return buf; }