Lines Matching refs:pos
731 pos = 0,
745 while ((match = XRegExp.exec(str, regex, pos)) != null)
759 pos = match.index + match[0].length;
870 function insertSpaces(line, pos, count) argument
872 return line.substr(0, pos)
874 + line.substr(pos + 1, line.length) // pos + 1 will get rid of the tab
884 var pos = 0;
886 while ((pos = line.indexOf(tab)) != -1)
891 var spaces = tabSize - pos % tabSize;
892 line = insertSpaces(line, pos, spaces);
1013 pos = 0
1016 while((match = XRegExp.exec(code, regexInfo.regex, pos)) != null)
1024 pos = match.index + match[0].length;
1504 var pos = 0,
1528 result += wrapLinesWithCode(code.substr(pos, match.index - pos), matchBrushName + 'plain')
1532 pos = match.index + match.length + (match.offset || 0);
1536 result += wrapLinesWithCode(code.substr(pos), getBrushNameCss() + 'plain');