Lines Matching refs:pos

232     function runTokens(pattern, pos, scope, context) {  argument
244 t.pattern.lastIndex = pos;
246 if (match && match.index === pos) {
342 pos = 0,
366 while (pos < pattern.length) {
368 tokenResult = runTokens(pattern, pos, scope, tokenContext);
371 pos += (tokenResult.match[0].length || 1);
374 match = nativ.exec.call(nativeTokens[scope], pattern.slice(pos));
377 pos += match[0].length;
379 chr = pattern.charAt(pos);
387 ++pos;
516 self.exec = function (str, regex, pos, sticky) { argument
519 r2.lastIndex = pos = pos || 0;
521 if (sticky && match && match.index !== pos) {
551 var pos = 0,
554 while ((match = self.exec(str, regex, pos))) {
556 pos = match.index + (match[0].length || 1);
801 self.test = function (str, regex, pos, sticky) { argument
803 return !!self.exec(str, regex, pos, sticky);
2012 pos = 0,
2026 while ((match = XRegExp.exec(str, regex, pos)) != null)
2040 pos = match.index + match[0].length;
2151 function insertSpaces(line, pos, count) argument
2153 return line.substr(0, pos)
2155 + line.substr(pos + 1, line.length) // pos + 1 will get rid of the tab
2165 var pos = 0;
2167 while ((pos = line.indexOf(tab)) != -1)
2172 var spaces = tabSize - pos % tabSize;
2173 line = insertSpaces(line, pos, spaces);
2294 pos = 0
2297 while((match = XRegExp.exec(code, regexInfo.regex, pos)) != null)
2305 pos = match.index + match[0].length;
2785 var pos = 0,
2809 result += wrapLinesWithCode(code.substr(pos, match.index - pos), matchBrushName + 'plain')
2813 pos = match.index + match.length + (match.offset || 0);
2817 result += wrapLinesWithCode(code.substr(pos), getBrushNameCss() + 'plain');