Code example for CharacterIterator

Methods: getBeginIndexgetEndIndexgetIndexsetIndex

0
        } 
    } 
     
 
    public int moveIndex(int delta){
        int length = iterator.getEndIndex() - iterator.getBeginIndex(); 
        int idx = iterator.getIndex()+delta;
         
        if(idx < 0) {
            idx = 0;
        } else if(idx > length) {
            idx = length;
        } 
        return iterator.setIndex(idx);
    } 
     
    /** 
     * @see UCharacterIterator#getCharacterIterator() 
     */ 
    public CharacterIterator getCharacterIterator(){
Stop searching for code, let great code find you!  Add Codota to your java IDE