Lines Matching refs:pos
281 var pos = html.indexOf('&');
282 if (pos < 0) { return html; }
286 for (--pos; (pos = html.indexOf('&#', pos + 1)) >= 0;) {
287 var end = html.indexOf(';', pos);
289 var num = html.substring(pos + 3, end);
297 html = (html.substring(0, pos) + String.fromCharCode(codePoint) +
388 var pos = 0;
395 out.push(plainText.substring(pos, i));
405 pos = i + 1;
415 out.push(plainText.substring(pos));
566 var pos = 0; // index into sourceCode
601 decorations.push(opt_basePos + pos, style);
602 pos += token.length;