Code example for CharacterIterator

Methods: getBeginIndexgetEndIndex

0
 
    /** 
     * @see UCharacterIterator#getLength() 
     */ 
    public int getLength() { 
        return (iterator.getEndIndex() - iterator.getBeginIndex());
    } 
 
    /** 
     * @see UCharacterIterator#getIndex() 
     */ 
    public int getIndex() { 
        return iterator.getIndex();
    } 
 
    /** 
     * @see UCharacterIterator#next() 
     */ 
    public int next() { 
        int i = iterator.current();