code: public void copyRemainder(Text other) {
          other.chars = this.chars;
          other.pos = this.linePointer + 1;
          other.len = this.len - this.linePointer - 1;
      }
docs: Copies substring from the current line upto the end to the specified destination.
  
  @param other the destination object