Lines Matching refs:index
4 let index = string.indexOf(substring);
5 if (index === -1) {
13 returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
14 endIndex = index + substringLength;
15 index = string.indexOf(substring, endIndex);
16 } while (index !== -1);
22 const stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => { argument
26 const gotCR = string[index - 1] === '\r';
27 …returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ?…
28 endIndex = index + 1;
29 index = string.indexOf('\n', endIndex);
30 } while (index !== -1);