a:7:{s:9:"#provides";s:21:"dojo.data.util.filter";s:9:"#resource";s:19:"data/util/filter.js";s:37:"dojo.data.util.filter.patternToRegExp";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"pattern";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:495:"string A simple matching pattern to convert that follows basic rules: * Means match anything, so ca* means match anything starting with ca ? Means match single character. So, b?b will match to bob and bab, and so on. \ is an escape character. So for example, \* means do not treat * as a match, but literal character *. To use a \ as a character in the string, it must be escaped. So in the pattern it should be represented by \\ to be treated as an ordinary \ character instead of an escape.";}s:10:"ignoreCase";a:3:{s:8:"optional";b:1;s:4:"type";s:7:"boolean";s:7:"summary";s:152:"An optional flag to indicate if the pattern matching should be treated as case-sensitive or not when comparing By default, it is assumed case sensitive.";}}s:6:"source";s:603:" var rxp = "^"; var c = null; for(var i = 0; i < pattern.length; i++){ c = pattern.charAt(i); switch (c) { case '\\': rxp += c; i++; rxp += pattern.charAt(i); break; case '*': rxp += ".*"; break; case '?': rxp += "."; break; case '$': case '^': case '/': case '+': case '.': case '|': case '(': case ')': case '{': case '}': case '[': case ']': rxp += "\\"; //fallthrough default: rxp += c; } } rxp += "$"; if(ignoreCase){ return new RegExp(rxp,"mi"); //RegExp }else{ return new RegExp(rxp,"m"); //RegExp }";s:7:"summary";s:81:"Helper function to convert a simple pattern to a regular expression for matching.";s:11:"description";s:194:"Returns a regular expression object that conforms to the defined conversion rules. For example: ca* -> /^ca.*$/ *ca* -> /^.*ca.*$/ *c\*a* -> /^.*c\*a.*$/ *c\*a?* -> /^.*c\*a..*$/ and so on.";s:7:"returns";s:6:"RegExp";}s:21:"dojo.data.util.filter";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:14:"dojo.data.util";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:9:"dojo.data";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:4:"dojo";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}