Whatever message this page gives is out now! Go check it out!
arrayFindAllNoCase(array, value or callback [, parallel] [, maxThreadCount])| Parameter | Description |
array | Array to search in. |
value | Value to search for in the array. |
callback | Inline function executed for each element in the array. Returns true if the array elements match the search criterion. |
parallel | True if you want to enable parallel programming. |
maxThreadCount | The number of threads the function can execute. The number of threads must be between 1-50. If the value exceeds 50, there is an exception. |
<cfscript>
writeDump(ArrayFindAllNoCase(["STRING","string"], "string"));
</cfscript><cfscript>
for(i=1;i<=10000001;i++){
if(i == 554)
arr[i]= 'ABBBAB'
else if(i == 768)
arr[i]='KKKKKK'
else
arr[i] = 'abbaa';
}
writeoutput("<br>ArrayFindAllNoCase with parallel as false : ")
writeoutput(arrayfindallnocase(arr,'abbbab',false)[1])
writedump(arrayfindallnocase(arr,'ABBAA',true,5))
writeoutput("<br>ArrayFindAll with 5 parallel threads: ")
writeoutput(arr.findallnocase('abbbab',true,5)[1])
writeoutput("<br>ArrayFindAll with 40 parallel threads: ")
writeoutput(arrayfindallnocase(array=arr,value='abbbab',parallel=true,maxthreadcount=40)[1])
</cfscript>