Searched refs:haystack (Results 1 - 17 of 17) sorted by relevance

/forgerock/openam-v13/openam-server-only/src/main/webapp/assets/lib/yui/dom/
H A Ddom-debug.js596 * @param {String | HTMLElement} haystack The possible ancestor
598 * @return {Boolean} Whether or not the haystack is an ancestor of needle
600 isAncestor: function(haystack, needle) {
601 haystack = Y.Dom.get(haystack);
602 if (!haystack || !needle) { return false; }
605 if (haystack.contains && node.nodeType && !isSafari) { // safari contains is broken
606 YAHOO.log('isAncestor returning ' + haystack.contains(node), 'info', 'Dom');
607 return haystack.contains(node);
609 else if ( haystack
[all...]
H A Ddom-min.js48 return id;};return Y.Dom.batch(el,f,Y.Dom,true)||f.apply(Y.Dom,arguments);},isAncestor:function(haystack,needle){haystack=Y.Dom.get(haystack);if(!haystack||!needle){return false;}
49 var f=function(node){if(haystack.contains&&node.nodeType&&!isSafari){return haystack.contains(node);}
50 else if(haystack.compareDocumentPosition&&node.nodeType){return!!(haystack.compareDocumentPosition(node)&16);}else if(node.nodeType){return!!this.getAncestorBy(node,function(el){return el==haystack;});}
H A Ddom.js581 * @param {String | HTMLElement} haystack The possible ancestor
583 * @return {Boolean} Whether or not the haystack is an ancestor of needle
585 isAncestor: function(haystack, needle) {
586 haystack = Y.Dom.get(haystack);
587 if (!haystack || !needle) { return false; }
590 if (haystack.contains && node.nodeType && !isSafari) { // safari contains is broken
591 return haystack.contains(node);
593 else if ( haystack.compareDocumentPosition && node.nodeType ) {
594 return !!(haystack
[all...]
/forgerock/openam-v13/openam-server-only/src/main/webapp/assets/lib/yui/utilities/
H A Dutilities.js83 return id;};return Y.Dom.batch(el,f,Y.Dom,true)||f.apply(Y.Dom,arguments);},isAncestor:function(haystack,needle){haystack=Y.Dom.get(haystack);if(!haystack||!needle){return false;}
84 var f=function(node){if(haystack.contains&&node.nodeType&&!isSafari){return haystack.contains(node);}
85 else if(haystack.compareDocumentPosition&&node.nodeType){return!!(haystack.compareDocumentPosition(node)&16);}else if(node.nodeType){return!!this.getAncestorBy(node,function(el){return el==haystack;});}
/forgerock/openam-v13/openam-server-only/src/main/webapp/assets/lib/yui/yahoo-dom-event/
H A Dyahoo-dom-event.js83 return id;};return Y.Dom.batch(el,f,Y.Dom,true)||f.apply(Y.Dom,arguments);},isAncestor:function(haystack,needle){haystack=Y.Dom.get(haystack);if(!haystack||!needle){return false;}
84 var f=function(node){if(haystack.contains&&node.nodeType&&!isSafari){return haystack.contains(node);}
85 else if(haystack.compareDocumentPosition&&node.nodeType){return!!(haystack.compareDocumentPosition(node)&16);}else if(node.nodeType){return!!this.getAncestorBy(node,function(el){return el==haystack;});}
/forgerock/openam-v13/openam-server-only/src/main/webapp/assets/lib/yui/yuitest/
H A Dyuitest-beta-debug.js1297 * @param {Array} haystack An array of values.
1302 contains : function (needle /*:Object*/, haystack /*:Array*/,
1308 for (var i=0; i < haystack.length && !found; i++){
1309 if (haystack[i] === needle) {
1324 * @param {Array} haystack An array of values to check.
1329 containsItems : function (needles /*:Object[]*/, haystack /*:Array*/,
1334 this.contains(needles[i], haystack, message);
1346 * @param {Array} haystack An array of values.
1351 containsMatch : function (matcher /*:Function*/, haystack /*:Array*/,
1362 for (var i=0; i < haystack
[all...]
H A Dyuitest-beta-min.js23 if(!YAHOO.lang.isString(this.name)){this.name=YAHOO.util.Dom.generateId(null,"testCase");}};YAHOO.tool.TestCase.prototype={setUp:function(){},tearDown:function(){}};YAHOO.namespace("util");YAHOO.util.Assert={fail:function(message){throw new YAHOO.util.AssertionError(message||"Test force-failed.");},areEqual:function(expected,actual,message){if(expected!=actual){throw new YAHOO.util.ComparisonFailure(message||"Values should be equal.",expected,actual);}},areNotEqual:function(unexpected,actual,message){if(unexpected==actual){throw new YAHOO.util.UnexpectedValue(message||"Values should not be equal.",unexpected);}},areNotSame:function(unexpected,actual,message){if(unexpected===actual){throw new YAHOO.util.UnexpectedValue(message||"Values should not be the same.",unexpected);}},areSame:function(expected,actual,message){if(expected!==actual){throw new YAHOO.util.ComparisonFailure(message||"Values should be the same.",expected,actual);}},isFalse:function(actual,message){if(false!==actual){throw new YAHOO.util.ComparisonFailure(message||"Value should be false.",false,actual);}},isTrue:function(actual,message){if(true!==actual){throw new YAHOO.util.ComparisonFailure(message||"Value should be true.",true,actual);}},isNaN:function(actual,message){if(!isNaN(actual)){throw new YAHOO.util.ComparisonFailure(message||"Value should be NaN.",NaN,actual);}},isNotNaN:function(actual,message){if(isNaN(actual)){throw new YAHOO.util.UnexpectedValue(message||"Values should not be NaN.",NaN);}},isNotNull:function(actual,message){if(YAHOO.lang.isNull(actual)){throw new YAHOO.util.UnexpectedValue(message||"Values should not be null.",null);}},isNotUndefined:function(actual,message){if(YAHOO.lang.isUndefined(actual)){throw new YAHOO.util.UnexpectedValue(message||"Value should not be undefined.",undefined);}},isNull:function(actual,message){if(!YAHOO.lang.isNull(actual)){throw new YAHOO.util.ComparisonFailure(message||"Value should be null.",null,actual);}},isUndefined:function(actual,message){if(!YAHOO.lang.isUndefined(actual)){throw new YAHOO.util.ComparisonFailure(message||"Value should be undefined.",undefined,actual);}},isArray:function(actual,message){if(!YAHOO.lang.isArray(actual)){throw new YAHOO.util.UnexpectedValue(message||"Value should be an array.",actual);}},isBoolean:function(actual,message){if(!YAHOO.lang.isBoolean(actual)){throw new YAHOO.util.UnexpectedValue(message||"Value should be a Boolean.",actual);}},isFunction:function(actual,message){if(!YAHOO.lang.isFunction(actual)){throw new YAHOO.util.UnexpectedValue(message||"Value should be a function.",actual);}},isInstanceOf:function(expected,actual,message){if(!(actual instanceof expected)){throw new YAHOO.util.ComparisonFailure(message||"Value isn't an instance of expected type.",expected,actual);}},isNumber:function(actual,message){if(!YAHOO.lang.isNumber(actual)){throw new YAHOO.util.UnexpectedValue(message||"Value should be a number.",actual);}},isObject:function(actual,message){if(!YAHOO.lang.isObject(actual)){throw new YAHOO.util.UnexpectedValue(message||"Value should be an object.",actual);}},isString:function(actual,message){if(!YAHOO.lang.isString(actual)){throw new YAHOO.util.UnexpectedValue(message||"Value should be a string.",actual);}},isTypeOf:function(expectedType,actualValue,message){if(typeof actualValue!=expectedType){throw new YAHOO.util.ComparisonFailure(message||"Value should be of type "+expected+".",expected,typeof actual);}}};YAHOO.util.AssertionError=function(message){arguments.callee.superclass.constructor.call(this,message);this.message=message;this.name="AssertionError";};YAHOO.lang.extend(YAHOO.util.AssertionError,Error,{getMessage:function(){return this.message;},toString:function(){return this.name+": "+this.getMessage();},valueOf:function(){return this.toString();}});YAHOO.util.ComparisonFailure=function(message,expected,actual){arguments.callee.superclass.constructor.call(this,message);this.expected=expected;this.actual=actual;this.name="ComparisonFailure";};YAHOO.lang.extend(YAHOO.util.ComparisonFailure,YAHOO.util.AssertionError,{getMessage:function(){return this.message+"\nExpected: "+this.expected+" ("+(typeof this.expected)+")"+"\nActual:"+this.actual+" ("+(typeof this.actual)+")";}});YAHOO.util.UnexpectedValue=function(message,unexpected){arguments.callee.superclass.constructor.call(this,message);this.unexpected=unexpected;this.name="UnexpectedValue";};YAHOO.lang.extend(YAHOO.util.UnexpectedValue,YAHOO.util.AssertionError,{getMessage:function(){return this.message+"\nUnexpected: "+this.unexpected+" ("+(typeof this.unexpected)+") ";}});YAHOO.util.ShouldFail=function(message){arguments.callee.superclass.constructor.call(this,message||"This test should fail but didn't.");this.name="ShouldFail";};YAHOO.lang.extend(YAHOO.util.ShouldFail,YAHOO.util.AssertionError);YAHOO.util.ShouldError=function(message){arguments.callee.superclass.constructor.call(this,message||"This test should have thrown an error but didn't.");this.name="ShouldError";};YAHOO.lang.extend(YAHOO.util.ShouldError,YAHOO.util.AssertionError);YAHOO.util.UnexpectedError=function(cause){arguments.callee.superclass.constructor.call(this,"Unexpected error: "+cause.message);this.cause=cause;this.name="UnexpectedError";};YAHOO.lang.extend(YAHOO.util.UnexpectedError,YAHOO.util.AssertionError);YAHOO.util.ArrayAssert={contains:function(needle,haystack,message){var found=false;for(var i=0;i<haystack.length&&!found;i++){if(haystack[i]===needle){found=true;}}
24 if(!found){YAHOO.util.Assert.fail(message||"Value ("+needle+") not found in array.");}},containsItems:function(needles,haystack,message){for(var i=0;i<needles.length;i++){this.contains(needles[i],haystack,message);}
25 if(!found){YAHOO.util.Assert.fail(message||"Value not found in array.");}},containsMatch:function(matcher,haystack,message){if(typeof matcher!="function"){throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");}
26 var found=false;for(var i=0;i<haystack.length&&!found;i++){if(matcher(haystack[i])){found=true;}}
27 if(!found){YAHOO.util.Assert.fail(message||"No match found in array.");}},doesNotContain:function(needle,haystack,message){var found=false;for(var i=0;i<haystack
[all...]
H A Dyuitest-beta.js1297 * @param {Array} haystack An array of values.
1302 contains : function (needle /*:Object*/, haystack /*:Array*/,
1308 for (var i=0; i < haystack.length && !found; i++){
1309 if (haystack[i] === needle) {
1324 * @param {Array} haystack An array of values to check.
1329 containsItems : function (needles /*:Object[]*/, haystack /*:Array*/,
1334 this.contains(needles[i], haystack, message);
1346 * @param {Array} haystack An array of values.
1351 containsMatch : function (matcher /*:Function*/, haystack /*:Array*/,
1362 for (var i=0; i < haystack
[all...]
/forgerock/openam/openam-server-only/src/main/webapp/assets/lib/yui/dom/
H A Ddom-debug.js596 * @param {String | HTMLElement} haystack The possible ancestor
598 * @return {Boolean} Whether or not the haystack is an ancestor of needle
600 isAncestor: function(haystack, needle) {
601 haystack = Y.Dom.get(haystack);
602 if (!haystack || !needle) { return false; }
605 if (haystack.contains && node.nodeType && !isSafari) { // safari contains is broken
606 YAHOO.log('isAncestor returning ' + haystack.contains(node), 'info', 'Dom');
607 return haystack.contains(node);
609 else if ( haystack
[all...]
H A Ddom-min.js48 return id;};return Y.Dom.batch(el,f,Y.Dom,true)||f.apply(Y.Dom,arguments);},isAncestor:function(haystack,needle){haystack=Y.Dom.get(haystack);if(!haystack||!needle){return false;}
49 var f=function(node){if(haystack.contains&&node.nodeType&&!isSafari){return haystack.contains(node);}
50 else if(haystack.compareDocumentPosition&&node.nodeType){return!!(haystack.compareDocumentPosition(node)&16);}else if(node.nodeType){return!!this.getAncestorBy(node,function(el){return el==haystack;});}
H A Ddom.js581 * @param {String | HTMLElement} haystack The possible ancestor
583 * @return {Boolean} Whether or not the haystack is an ancestor of needle
585 isAncestor: function(haystack, needle) {
586 haystack = Y.Dom.get(haystack);
587 if (!haystack || !needle) { return false; }
590 if (haystack.contains && node.nodeType && !isSafari) { // safari contains is broken
591 return haystack.contains(node);
593 else if ( haystack.compareDocumentPosition && node.nodeType ) {
594 return !!(haystack
[all...]
/forgerock/openam/openam-server-only/src/main/webapp/assets/lib/yui/utilities/
H A Dutilities.js83 return id;};return Y.Dom.batch(el,f,Y.Dom,true)||f.apply(Y.Dom,arguments);},isAncestor:function(haystack,needle){haystack=Y.Dom.get(haystack);if(!haystack||!needle){return false;}
84 var f=function(node){if(haystack.contains&&node.nodeType&&!isSafari){return haystack.contains(node);}
85 else if(haystack.compareDocumentPosition&&node.nodeType){return!!(haystack.compareDocumentPosition(node)&16);}else if(node.nodeType){return!!this.getAncestorBy(node,function(el){return el==haystack;});}
/forgerock/openam/openam-server-only/src/main/webapp/assets/lib/yui/yahoo-dom-event/
H A Dyahoo-dom-event.js83 return id;};return Y.Dom.batch(el,f,Y.Dom,true)||f.apply(Y.Dom,arguments);},isAncestor:function(haystack,needle){haystack=Y.Dom.get(haystack);if(!haystack||!needle){return false;}
84 var f=function(node){if(haystack.contains&&node.nodeType&&!isSafari){return haystack.contains(node);}
85 else if(haystack.compareDocumentPosition&&node.nodeType){return!!(haystack.compareDocumentPosition(node)&16);}else if(node.nodeType){return!!this.getAncestorBy(node,function(el){return el==haystack;});}
/forgerock/openam/openam-server-only/src/main/webapp/assets/lib/yui/yuitest/
H A Dyuitest-beta-debug.js1297 * @param {Array} haystack An array of values.
1302 contains : function (needle /*:Object*/, haystack /*:Array*/,
1308 for (var i=0; i < haystack.length && !found; i++){
1309 if (haystack[i] === needle) {
1324 * @param {Array} haystack An array of values to check.
1329 containsItems : function (needles /*:Object[]*/, haystack /*:Array*/,
1334 this.contains(needles[i], haystack, message);
1346 * @param {Array} haystack An array of values.
1351 containsMatch : function (matcher /*:Function*/, haystack /*:Array*/,
1362 for (var i=0; i < haystack
[all...]
H A Dyuitest-beta-min.js23 if(!YAHOO.lang.isString(this.name)){this.name=YAHOO.util.Dom.generateId(null,"testCase");}};YAHOO.tool.TestCase.prototype={setUp:function(){},tearDown:function(){}};YAHOO.namespace("util");YAHOO.util.Assert={fail:function(message){throw new YAHOO.util.AssertionError(message||"Test force-failed.");},areEqual:function(expected,actual,message){if(expected!=actual){throw new YAHOO.util.ComparisonFailure(message||"Values should be equal.",expected,actual);}},areNotEqual:function(unexpected,actual,message){if(unexpected==actual){throw new YAHOO.util.UnexpectedValue(message||"Values should not be equal.",unexpected);}},areNotSame:function(unexpected,actual,message){if(unexpected===actual){throw new YAHOO.util.UnexpectedValue(message||"Values should not be the same.",unexpected);}},areSame:function(expected,actual,message){if(expected!==actual){throw new YAHOO.util.ComparisonFailure(message||"Values should be the same.",expected,actual);}},isFalse:function(actual,message){if(false!==actual){throw new YAHOO.util.ComparisonFailure(message||"Value should be false.",false,actual);}},isTrue:function(actual,message){if(true!==actual){throw new YAHOO.util.ComparisonFailure(message||"Value should be true.",true,actual);}},isNaN:function(actual,message){if(!isNaN(actual)){throw new YAHOO.util.ComparisonFailure(message||"Value should be NaN.",NaN,actual);}},isNotNaN:function(actual,message){if(isNaN(actual)){throw new YAHOO.util.UnexpectedValue(message||"Values should not be NaN.",NaN);}},isNotNull:function(actual,message){if(YAHOO.lang.isNull(actual)){throw new YAHOO.util.UnexpectedValue(message||"Values should not be null.",null);}},isNotUndefined:function(actual,message){if(YAHOO.lang.isUndefined(actual)){throw new YAHOO.util.UnexpectedValue(message||"Value should not be undefined.",undefined);}},isNull:function(actual,message){if(!YAHOO.lang.isNull(actual)){throw new YAHOO.util.ComparisonFailure(message||"Value should be null.",null,actual);}},isUndefined:function(actual,message){if(!YAHOO.lang.isUndefined(actual)){throw new YAHOO.util.ComparisonFailure(message||"Value should be undefined.",undefined,actual);}},isArray:function(actual,message){if(!YAHOO.lang.isArray(actual)){throw new YAHOO.util.UnexpectedValue(message||"Value should be an array.",actual);}},isBoolean:function(actual,message){if(!YAHOO.lang.isBoolean(actual)){throw new YAHOO.util.UnexpectedValue(message||"Value should be a Boolean.",actual);}},isFunction:function(actual,message){if(!YAHOO.lang.isFunction(actual)){throw new YAHOO.util.UnexpectedValue(message||"Value should be a function.",actual);}},isInstanceOf:function(expected,actual,message){if(!(actual instanceof expected)){throw new YAHOO.util.ComparisonFailure(message||"Value isn't an instance of expected type.",expected,actual);}},isNumber:function(actual,message){if(!YAHOO.lang.isNumber(actual)){throw new YAHOO.util.UnexpectedValue(message||"Value should be a number.",actual);}},isObject:function(actual,message){if(!YAHOO.lang.isObject(actual)){throw new YAHOO.util.UnexpectedValue(message||"Value should be an object.",actual);}},isString:function(actual,message){if(!YAHOO.lang.isString(actual)){throw new YAHOO.util.UnexpectedValue(message||"Value should be a string.",actual);}},isTypeOf:function(expectedType,actualValue,message){if(typeof actualValue!=expectedType){throw new YAHOO.util.ComparisonFailure(message||"Value should be of type "+expected+".",expected,typeof actual);}}};YAHOO.util.AssertionError=function(message){arguments.callee.superclass.constructor.call(this,message);this.message=message;this.name="AssertionError";};YAHOO.lang.extend(YAHOO.util.AssertionError,Error,{getMessage:function(){return this.message;},toString:function(){return this.name+": "+this.getMessage();},valueOf:function(){return this.toString();}});YAHOO.util.ComparisonFailure=function(message,expected,actual){arguments.callee.superclass.constructor.call(this,message);this.expected=expected;this.actual=actual;this.name="ComparisonFailure";};YAHOO.lang.extend(YAHOO.util.ComparisonFailure,YAHOO.util.AssertionError,{getMessage:function(){return this.message+"\nExpected: "+this.expected+" ("+(typeof this.expected)+")"+"\nActual:"+this.actual+" ("+(typeof this.actual)+")";}});YAHOO.util.UnexpectedValue=function(message,unexpected){arguments.callee.superclass.constructor.call(this,message);this.unexpected=unexpected;this.name="UnexpectedValue";};YAHOO.lang.extend(YAHOO.util.UnexpectedValue,YAHOO.util.AssertionError,{getMessage:function(){return this.message+"\nUnexpected: "+this.unexpected+" ("+(typeof this.unexpected)+") ";}});YAHOO.util.ShouldFail=function(message){arguments.callee.superclass.constructor.call(this,message||"This test should fail but didn't.");this.name="ShouldFail";};YAHOO.lang.extend(YAHOO.util.ShouldFail,YAHOO.util.AssertionError);YAHOO.util.ShouldError=function(message){arguments.callee.superclass.constructor.call(this,message||"This test should have thrown an error but didn't.");this.name="ShouldError";};YAHOO.lang.extend(YAHOO.util.ShouldError,YAHOO.util.AssertionError);YAHOO.util.UnexpectedError=function(cause){arguments.callee.superclass.constructor.call(this,"Unexpected error: "+cause.message);this.cause=cause;this.name="UnexpectedError";};YAHOO.lang.extend(YAHOO.util.UnexpectedError,YAHOO.util.AssertionError);YAHOO.util.ArrayAssert={contains:function(needle,haystack,message){var found=false;for(var i=0;i<haystack.length&&!found;i++){if(haystack[i]===needle){found=true;}}
24 if(!found){YAHOO.util.Assert.fail(message||"Value ("+needle+") not found in array.");}},containsItems:function(needles,haystack,message){for(var i=0;i<needles.length;i++){this.contains(needles[i],haystack,message);}
25 if(!found){YAHOO.util.Assert.fail(message||"Value not found in array.");}},containsMatch:function(matcher,haystack,message){if(typeof matcher!="function"){throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");}
26 var found=false;for(var i=0;i<haystack.length&&!found;i++){if(matcher(haystack[i])){found=true;}}
27 if(!found){YAHOO.util.Assert.fail(message||"No match found in array.");}},doesNotContain:function(needle,haystack,message){var found=false;for(var i=0;i<haystack
[all...]
H A Dyuitest-beta.js1297 * @param {Array} haystack An array of values.
1302 contains : function (needle /*:Object*/, haystack /*:Array*/,
1308 for (var i=0; i < haystack.length && !found; i++){
1309 if (haystack[i] === needle) {
1324 * @param {Array} haystack An array of values to check.
1329 containsItems : function (needles /*:Object[]*/, haystack /*:Array*/,
1334 this.contains(needles[i], haystack, message);
1346 * @param {Array} haystack An array of values.
1351 containsMatch : function (matcher /*:Function*/, haystack /*:Array*/,
1362 for (var i=0; i < haystack
[all...]
/systemd/src/basic/
H A Dstring-util.h167 /* Normal memmem() requires haystack to be nonnull, which is annoying for zero-length buffers */
168 static inline void *memmem_safe(const void *haystack, size_t haystacklen, const void *needle, size_t needlelen) { argument
171 return (void*) haystack;
176 assert(haystack);
179 return memmem(haystack, haystacklen, needle, needlelen);

Completed in 113 milliseconds