API  0.9.6
 All Classes Files Functions Variables Macros Groups Pages
CPComparisonPredicate.j File Reference

Go to the source code of this file.

Variables

 CPAllPredicateModifier = 1
 
 CPAnyPredicateModifier = 2
 
 CPBeginsWithPredicateOperatorType = 8
 
 CPBetweenPredicateOperatorType = 100
 
 CPCaseInsensitivePredicateOption = 1
 
var CPComparisonPredicateModifier
 
 CPContainsPredicateOperatorType = 99
 
 CPCustomSelectorPredicateOperatorType = 11
 
 CPDiacriticInsensitivePredicateOption = 2
 
 CPDiacriticInsensitiveSearch = 128
 
 CPDirectPredicateModifier = 0
 
 CPEndsWithPredicateOperatorType = 9
 
 CPEqualToPredicateOperatorType = 4
 
 CPGreaterThanOrEqualToPredicateOperatorType = 3
 
 CPGreaterThanPredicateOperatorType = 2
 
 CPInPredicateOperatorType = 10
 
 CPLessThanOrEqualToPredicateOperatorType = 1
 
 CPLessThanPredicateOperatorType = 0
 
 CPLikePredicateOperatorType = 7
 
 CPMatchesPredicateOperatorType = 6
 
 CPNotEqualToPredicateOperatorType = 5
 
var CPPredicateOperatorType
 
var dest = ['.*','.?','\\(','\\)','\\{','\\}','\\.','\\+','\\|','\\/','\\$','\\^']
 
String prototype escapeForRegExp
 
var source = ['*','?','(',')','{','}','.','+','|','/','$','^']
 

Variable Documentation

CPAllPredicateModifier = 1

Definition at line 39 of file CPComparisonPredicate.j.

CPAnyPredicateModifier = 2

Definition at line 47 of file CPComparisonPredicate.j.

CPBeginsWithPredicateOperatorType = 8

Definition at line 116 of file CPComparisonPredicate.j.

CPBetweenPredicateOperatorType = 100

Definition at line 154 of file CPComparisonPredicate.j.

CPCaseInsensitivePredicateOption = 1

Definition at line 54 of file CPComparisonPredicate.j.

var CPComparisonPredicateModifier

Definition at line 156 of file CPComparisonPredicate.j.

CPContainsPredicateOperatorType = 99

Definition at line 146 of file CPComparisonPredicate.j.

CPCustomSelectorPredicateOperatorType = 11

Definition at line 138 of file CPComparisonPredicate.j.

CPDiacriticInsensitivePredicateOption = 2

Definition at line 60 of file CPComparisonPredicate.j.

CPDiacriticInsensitiveSearch = 128

Definition at line 61 of file CPComparisonPredicate.j.

CPDirectPredicateModifier = 0

Definition at line 31 of file CPComparisonPredicate.j.

CPEndsWithPredicateOperatorType = 9

Definition at line 122 of file CPComparisonPredicate.j.

CPEqualToPredicateOperatorType = 4

Definition at line 92 of file CPComparisonPredicate.j.

CPGreaterThanOrEqualToPredicateOperatorType = 3

Definition at line 86 of file CPComparisonPredicate.j.

CPGreaterThanPredicateOperatorType = 2

Definition at line 80 of file CPComparisonPredicate.j.

CPInPredicateOperatorType = 10

Definition at line 130 of file CPComparisonPredicate.j.

CPLessThanOrEqualToPredicateOperatorType = 1

Definition at line 74 of file CPComparisonPredicate.j.

CPLessThanPredicateOperatorType = 0

Definition at line 68 of file CPComparisonPredicate.j.

CPLikePredicateOperatorType = 7

Definition at line 110 of file CPComparisonPredicate.j.

CPMatchesPredicateOperatorType = 6

Definition at line 104 of file CPComparisonPredicate.j.

CPNotEqualToPredicateOperatorType = 5

Definition at line 98 of file CPComparisonPredicate.j.

var CPPredicateOperatorType

Definition at line 156 of file CPComparisonPredicate.j.

var dest = ['.*','.?','\\(','\\)','\\{','\\}','\\.','\\+','\\|','\\/','\\$','\\^']

Definition at line 554 of file CPComparisonPredicate.j.

String prototype escapeForRegExp
Initial value:
= function()
{
var foundChar = false,
i = 0;
for (; i < source.length; ++i)
{
if (this.indexOf(source[i]) !== -1)
{
foundChar = true;
break;
}
}
if (!foundChar)
return this;
var result = "";
for (i = 0; i < this.length; ++i)
{
var sourceIndex = source.indexOf(this.charAt(i));
if (sourceIndex !== -1)
result += dest[sourceIndex];
else
result += this.charAt(i);
}
return result;
}

Definition at line 556 of file CPComparisonPredicate.j.

var source = ['*','?','(',')','{','}','.','+','|','/','$','^']

Definition at line 553 of file CPComparisonPredicate.j.