src/main/java/walkingkooka/datetime/DateTimeFormatterPatternVisitor.java
/**
     * Finds the repeating character, then calls the visitor method with a width parameter.
     */
Finds the repeating character, then calls the visitor method with a width parameter.
Finds the repeating character then calls the visitor method with a width parameter .
private int traverseRepeating(final String pattern,
                                  final int position,
                                  final int max,
                                  final IntConsumer dispatcher) {
        final String text = this.repeatingTextRun(position, pattern);
        final int width = text.length();
        if (Visiting.CONTINUE == this.startVisitComponent(position, text)) {
            if (width <= max) { 
                dispatcher.accept(width);
            } else {
                this.visitIllegal(text);
            }
        }
        this.endVisitComponent(position, text);
        return position + width;
    }
private int traverseRepeating ( final String pattern , final int position , final int max , final IntConsumer dispatcher ) { final String text = this . repeatingTextRun ( position , pattern ) ; final int width = text . length ( ) ; if ( Visiting . CONTINUE == this . startVisitComponent ( position , text ) ) { if ( width <= max ) { dispatcher . accept ( width ) ; } else { this . visitIllegal ( text ) ; } } this . endVisitComponent ( position , text ) ; return position + width ; }
Finds the repeating character, then calls the visitor method with a width parameter.
Finds the repeating character then calls the visitor method with a width parameter .
// inclusive