private void incrementIndexes ( int c ) { if ( c > 0 ) { this . index ++ ; if ( c == ' ' ) { this . line ++ ; this . characterPreviousLine = this . character ; this . character = 0 ; } else if ( c == ' ' ) { if ( this . previous != ' ' ) { this . line ++ ; this . characterPreviousLine = this . character ; } this . character = 0 ; } else { this . character ++ ; } } }
Increments the internal indexes according to the previous character read and the character passed as the current character .