public char setIndex ( int location ) { if ( location < start || location > end ) { throw new IllegalArgumentException ( ) ; } offset = location ; if ( offset == end ) { return DONE ; } return string . charAt ( offset ) ; }
Sets the current index in the source string .