Home | History | Annotate | Download | only in util

Lines Matching refs:charIndex

132                 return Integer.compare(start2.charIndex, start1.charIndex);
141 String newLine = line.substring(0, endTagPosition.charIndex) + " " + tag +
142 line.substring(endTagPosition.charIndex);
210 if (endTag.charIndex <= 0) {
213 endTag.charIndex -= 2;
218 if (position.charIndex <= 0) {
221 position.charIndex--;
240 String newStartLine = startLine.substring(0, start.charIndex) + text;
247 String newEndLine = replaceWithSpaces(endLine, 0, end.charIndex - 1);
250 } else if (end.charIndex - start.charIndex >= text.length()) {
252 int endTextIndex = start.charIndex + text.length();
253 String replacedText = replaceRange(line, start.charIndex, endTextIndex, text);
254 String spacedText = replaceWithSpaces(replacedText, endTextIndex, end.charIndex - 1);
259 String newLine = replaceWithSpaces(line, start.charIndex, end.charIndex - 1);
369 startPosition.charIndex = index;
384 while (pos.charIndex > line.length()) {
385 pos.charIndex--;
392 int charIndex;
394 public Position(int line, int charIndex) {
396 this.charIndex = charIndex;