Lines Matching refs:match

380     var names = this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1]
479 RegExp.prototype.match = RegExp.prototype.test; method in RegExp
542 return function(match) { return template.evaluate(match) }; argument
546 var result = '', source = this, match;
558 if (match = source.match(pattern)) {
559 result += source.slice(0, match.index);
560 result += String.interpret(replacement(match));
561 source = source.slice(match.index + match[0].length);
573 return this.gsub(pattern, function(match) { argument
574 if (--count < 0) return match[0];
575 return replacement(match);
606 return (this.match(matchAll) || []).map(function(scriptTag) {
607 return (scriptTag.match(matchOne) || ['', ''])[1];
625 var match = this.strip().match(/([^?#]*)(#.*)?$/);
626 if (!match) return { };
628 return match[1].split(separator || '&').inject({ }, function(hash, pair) {
659 return this.replace(/-+(.)?/g, function(match, chr) { argument
792 return this.template.gsub(this.pattern, function(match) { argument
793 if (object == null) return (match[1] + '');
795 var before = match[1] || '';
796 if (before == '\\') return match[2];
798 var ctx = object, expr = match[3],
801 match = pattern.exec(expr);
802 if (match == null) return before;
804 while (match != null) {
805 var comp = match[1].startsWith('[') ? match[2].replace(/\\\\]/g, ']') : match[1];
807 if (null == ctx || '' == match[3]) break;
808 expr = expr.substring('[' == match[3] ? match[1].length : match[0].length);
809 match = pattern.exec(expr);
898 if (filter.match(value))
1271 var match = this.detect(function(pair) {
1274 return match && match.key;
1564 (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0,2005])[1] < 2005)
1610 && contentType.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i)))
1627 var m = this.url.match(/^\s*https?:\/\/[^\/]*/);
2186 match: function(element, selector) { method in Element.Methods
2189 return Prototype.Selector.match(element, selector);
2190 return selector.match(element);
2384 var elementStyle = element.style, match;
2388 element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/)[1]) : element;
2546 if (value = (element.getStyle('filter') || '').match(/alpha\(opacity=(.*)\)/))
3181 var match = pctString.match(/^(\d+)%?$/i);
3182 if (!match) return null;
3183 return (Number(match[1]) / 100);
3932 function match() { function
3938 var match = Prototype.Selector.match, length = elements.length, matchIndex = 0, i;
3941 if (match(elements[i], expression) && index == matchIndex++) {
3959 match: match,
4030 Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
4125 var set, match;
4132 var type = Expr.order[i], match;
4134 if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
4135 var left = match[1];
4136 match.splice(1,1);
4139 match[1] = (match[1] || "").replace(/\\/g, "");
4326 ID: function(match, context, isXML){
4328 var m = context.getElementById(match[1]);
4332 NAME: function(match, context, isXML){
4334 var ret = [], results = context.getElementsByName(match[1]);
4337 if ( results[i].getAttribute("name") === match[1] ) {
4345 TAG: function(match, context){
4346 return context.getElementsByTagName(match[1]);
4350 CLASS: function(match, curLoop, inplace, result, not, isXML){
4351 match = " " + match[1].replace(/\\/g, "") + " ";
4373 TAG: function(match, curLoop){
4375 return curLoop[i] && isXML(curLoop[i]) ? match[1] : match[1].toUpperCase();
4377 CHILD: function(match){
4378 if ( match[1] == "nth" ) {
4380 match[2] == "even" && "2n" || match[2] == "odd" && "2n+1" ||
4381 !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
4383 match[2] = (test[1] + (test[2] || 1)) - 0;
4384 match[3] = test[3] - 0;
4387 match[0] = done++;
4389 return match;
4391 ATTR: function(match, curLoop, inplace, result, not, isXML){
4392 var name = match[1].replace(/\\/g, "");
4406 if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
4407 match[3] = Sizzle(match[3], null, null, curLoop);
4409 var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
4415 } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
4419 return match;
4421 POS: function(match){
4422 match.unshift( true );
4423 return match;
4446 has: function(elem, i, match){
4447 return !!Sizzle( match[3], elem ).length;
4487 last: function(elem, i, match, array){
4496 lt: function(elem, i, match){
4497 return i < match[3] - 0;
4499 gt: function(elem, i, match){
4500 return i > match[3] - 0;
4502 nth: function(elem, i, match){
4503 return match[3] - 0 == i;
4505 eq: function(elem, i, match){
4506 return match[3] - 0 == i;
4510 PSEUDO: function(elem, match, i, array){
4511 var name = match[1], filter = Expr.filters[ name ];
4514 return filter( elem, i, match, array );
4516 return (elem.textContent || elem.innerText || "").indexOf(match[3]) >= 0;
4518 var not = match[3];
4529 CHILD: function(elem, match){
4530 var type = match[1], node = elem;
4545 var first = match[2], last = match[3];
4551 var doneName = match[0],
4572 ID: function(elem, match){
4573 return elem.nodeType === 1 && elem.getAttribute("id") === match;
4575 TAG: function(elem, match){
4576 return (match === "*" && elem.nodeType === 1) || elem.nodeName === match;
4578 CLASS: function(elem, match){
4580 .indexOf( match ) > -1;
4582 ATTR: function(elem, match){
4583 var name = match[1],
4590 type = match[2],
4591 check = match[4];
4613 POS: function(elem, match, i, array){
4614 var name = match[2], filter = Expr.setFilters[ name ];
4617 return filter( elem, i, match, array );
4623 var origPOS = Expr.match.POS;
4625 for ( var type in Expr.match ) {
4626 Expr.match[ type ] = new RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source ); variable in Expr
4627 Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source );
4729 Expr.find.ID = function(match, context, isXML){ argument
4731 var m = context.getElementById(match[1]);
4732 …return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("i…
4736 Expr.filter.ID = function(elem, match){ argument
4738 return elem.nodeType === 1 && node && node.nodeValue === match;
4752 Expr.find.TAG = function(match, context){ argument
4753 var results = context.getElementsByTagName(match[1]);
4755 if ( match[1] === "*" ) {
4822 Expr.find.CLASS = function(match, context, isXML) { argument
4824 return context.getElementsByClassName(match[1]);
4841 var match = false;
4845 match = checkSet[elem.sizset];
4855 match = elem;
4862 checkSet[i] = match;
4877 var match = false;
4881 match = checkSet[elem.sizset];
4892 match = true;
4897 match = elem;
4905 checkSet[i] = match;
4922 var tmpSet = [], later = "", match,
4925 while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
4926 later += match[0];
4927 selector = selector.replace( Expr.match.PSEUDO, "" );
4951 function match(element, selector) { function
4957 Prototype.Selector.match = match;
5435 if (Object.isElement(element) && Prototype.Selector.match(element, expression)) {
6039 match: function(element) {
6040 return Prototype.Selector.match(element, this.expression);
6054 var match = Prototype.Selector.match,
6059 if (match(element, expression)) {
6071 if (Prototype.Selector.match(element, expression) && index === matchIndex++) {