public String consumeToPosition(int position) {
        String consumed=substring(position);
        p=position;
        return consumed;
    }
Returns the substring between the current position and <code>position</code>
and advances the current position to <code>position</code>
vespajlib/src/main/java/com/yahoo/text/PositionedString.java