Lines Matching refs:index
37 final int index = SearchUtil.contains(contents, substring);
38 if (index != -1) {
40 int start = index - 1;
47 int end = index + 1;
55 matched.startIndex = index - (start + 1);
66 * <p>2) Returns the starting index where the substring is found.
70 * @return The starting index where the substring is found. {@literal -1} if substring is not
114 * @param startIndex The index to start searching. 0 based indexing.
115 * @return The index for the start of the next token. line.length() if next token not found.
119 int index = startIndex;
122 while (index <= line.length()) {
123 if (index == line.length()) {
125 return index;
127 final int codePoint = line.codePointAt(index);
131 index += Character.charCount(codePoint);
135 while (index <= line.length()) {
136 if (index == line.length()) {
137 return index;
139 final int codePoint = line.codePointAt(index);
143 index += Character.charCount(codePoint);
146 return index;