Lines Matching refs:index
29 let [index, next] = this.indexOf(text, tag);
30 if (index > -1)
61 var index;
67 [index, next] = this.indexOf(text, open, start);
68 if (index == -1)
73 [index, next] = this.indexOf(text, close, start);
74 if (index == -1)
89 const index = string.indexOf(re, start);
90 return [index, index + re.length];
94 var index = (indexOf >= 0) ? (indexOf + start) : indexOf;
95 return [index, index + 1]
107 const index = string.indexOf(word);
109 if (index > -1) {
111 string = string.substring(index + word.length)
189 const index = string.indexOf(search);
190 return string.substring(0, index) + replace + string.substring(index + search.length);
194 const index = string.indexOf(char);
195 if (index == -1)
197 const left = string.substring(0, index);
198 const right = string.substring(index+1);
204 const index = string.lastIndexOf(char);
205 if (index == -1)
207 const left = string.substring(0, index);
208 const right = string.substring(index+1);
256 const index = words.indexOf(word1);
258 if (index > -1) {
259 if (index > i)
261 i = index-1;
262 words.splice(index, 1);