Home | History | Annotate | Download | only in impl

Lines Matching defs:currentIndex

39         this.currentIndex = 0;
51 this.currentIndex = 0;
63 this.currentIndex = 0;
88 if (currentIndex < replaceable.length()) {
89 return replaceable.charAt(currentIndex);
132 * Gets the current currentIndex in text.
133 * @return current currentIndex in text.
137 return currentIndex;
141 * Returns next UTF16 character and increments the iterator's currentIndex by 1.
142 * If the resulting currentIndex is greater or equal to the text length, the
143 * currentIndex is reset to the text length and a value of DONECODEPOINT is
145 * @return next UTF16 character in text or DONE if the new currentIndex is off the
150 if (currentIndex < replaceable.length()) {
151 return replaceable.charAt(currentIndex++);
158 * Returns previous UTF16 character and decrements the iterator's currentIndex by
160 * If the resulting currentIndex is less than 0, the currentIndex is reset to 0 and a
162 * @return next UTF16 character in text or DONE if the new currentIndex is off the
167 if (currentIndex > 0) {
168 return replaceable.charAt(--currentIndex);
174 * <p>Sets the currentIndex to the specified currentIndex in the text and returns that
175 * single UTF16 character at currentIndex.
177 * @param currentIndex the currentIndex within the text.
178 * @exception IllegalArgumentException is thrown if an invalid currentIndex is
179 * supplied. i.e. currentIndex is out of bounds.
180 * @returns the character at the specified currentIndex or DONE if the specified
181 * currentIndex is equal to the end of the text.
184 public void setIndex(int currentIndex) throws IndexOutOfBoundsException{
185 if (currentIndex < 0 || currentIndex > replaceable.length()) {
188 this.currentIndex = currentIndex;
208 * Current currentIndex
210 private int currentIndex;