Lines Matching refs:str

484     self.escape = function (str) {  argument
485 return nativ.replace.call(str, /[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
516 self.exec = function (str, regex, pos, sticky) { argument
520 match = fixed.exec.call(r2, str); // Fixed `exec` required for `lastIndex` fix, etc.
550 self.forEach = function (str, regex, callback, context) { argument
554 while ((match = self.exec(str, regex, pos))) {
555 callback.call(context, match, ++i, str, regex);
668 self.matchChain = function (str, chain) { argument
682 }([str], 0));
731 self.replace = function (str, search, replacement, scope) { argument
744 …result = fixed.replace.call(String(str), search2, replacement); // Fixed `replace` required for na…
776 self.split = function (str, separator, limit) { argument
777 return fixed.split.call(str, separator, limit);
801 self.test = function (str, regex, pos, sticky) { argument
803 return !!self.exec(str, regex, pos, sticky);
912 fixed.exec = function (str) { argument
925 nativ.replace.call(String(str).slice(match.index), r2, function () {
961 fixed.test = function (str) { argument
963 return !!fixed.exec.call(this, str);
1000 var isRegex = self.isRegExp(search), captureNames, result, str, origLastIndex;
1032str = String(this); // Ensure `args[args.length - 1]` will be a string when given nonstring `this`
1033 result = nativ.replace.call(str, search, function () {
1106 var str = String(this),
1119 self.forEach(str, separator, function (match) {
1121 output.push(str.slice(lastLastIndex, match.index));
1122 if (match.length > 1 && match.index < str.length) {
1129 if (lastLastIndex === str.length) {
1134 output.push(str.slice(lastLastIndex));
1914 function alert(str) argument
1916 window.alert(sh.config.strings.alert + str);
1969 function eachLine(str, callback) argument
1971 var lines = splitLines(str);
1987 function trimFirstAndLastLines(str) argument
1989 return str.replace(/^[ ]*[\n]+|[\n]*[ ]*$/g, '');
2007 function parseParams(str) argument
2026 while ((match = XRegExp.exec(str, regex, pos)) != null)
2053 function wrapLinesWithCode(str, css) argument
2055 if (str == null || str.length == 0 || str == '\n')
2056 return str;
2058 str = str.replace(/</g, '&lt;');
2061 str = str.replace(/ {2,}/g, function(m)
2074 str = eachLine(str, function(line)
2093 return str;
2185 function fixInputString(str) argument
2190 str = str.replace(br, '\n');
2193 str = str.replace(br, '');
2195 return str;
2204 function trim(str) argument
2206 return str.replace(/^\s+|\s+$/g, '');
2214 function unindent(str) argument
2216 var lines = splitLines(fixInputString(str)),
2235 return str;
2964 getKeywords: function(str)
2966 str = str
2971 return '\\b(?:' + str + ')\\b';