private int METHOD_1 ( int index ) { char c = this . text . METHOD_2 ( ( index - 1 ) ) ; switch ( c ) { case CHAR_1 : if ( ( this . text . METHOD_2 ( ( index - INT_1 ) ) ) == CHAR_2 ) { return index - INT_1 ; } case CHAR_2 : return index - 1 ; } return index ; }

private int METHOD_1 ( int index ) { if ( index <= 0 ) { return 0 ; } switch ( this . text . METHOD_2 ( ( index - 1 ) ) ) { case CHAR_1 : if ( ( index > 1 ) && ( ( this . text . METHOD_2 ( ( index - INT_1 ) ) ) == CHAR_2 ) ) { return index - INT_1 ; } case CHAR_2 : return index - 1 ; } return index ; }
