Lines Matching defs:currentIndex

63         this.currentIndex = 0;
75 this.currentIndex = 0;
98 if (currentIndex < replaceable.length()) {
99 return replaceable.charAt(currentIndex);
113 * Gets the current currentIndex in text.
114 * @return current currentIndex in text.
117 return currentIndex;
121 * Returns next UTF16 character and increments the iterator's currentIndex by 1.
122 * If the resulting currentIndex is greater or equal to the text length, the
123 * currentIndex is reset to the text length and a value of DONECODEPOINT is
125 * @return next UTF16 character in text or DONE if the new currentIndex is off the
129 if (currentIndex < replaceable.length()) {
130 return replaceable.charAt(currentIndex++);
137 * Returns previous UTF16 character and decrements the iterator's currentIndex by
139 * If the resulting currentIndex is less than 0, the currentIndex is reset to 0 and a
141 * @return next UTF16 character in text or DONE if the new currentIndex is off the
145 if (currentIndex > 0) {
146 return replaceable.charAt(--currentIndex);
152 * Sets the currentIndex to the specified currentIndex in the text and returns that
153 * single UTF16 character at currentIndex.
155 * @param currentIndex the currentIndex within the text.
156 * @exception IllegalArgumentException is thrown if an invalid currentIndex is
157 * supplied. i.e. currentIndex is out of bounds.
159 public void setIndex(int currentIndex) {
160 if (currentIndex < 0 || currentIndex > replaceable.length()) {
163 this.currentIndex = currentIndex;
182 * Current currentIndex
184 private int currentIndex;