Lines Matching defs:pattern
781 protected function match($exp, $pattern, $value, $case_sensitivity)
787 $pattern = strtolower($pattern);
793 return ($value === $pattern);
795 return ($value !== $pattern);
797 return preg_match('/^' . preg_quote($pattern, '/') . '/', $value);
799 return preg_match('/' . preg_quote($pattern, '/') . '$/', $value);
801 return preg_match('/' . preg_quote($pattern, '/') . '/', $value);
810 return strpos($value, $pattern) === 0;
821 return in_array($pattern, explode(' ', trim($value)), true);
875 $pattern = "/([\w:\*-]*)(?:\#([\w-]+))?(?:|\.([\w\.-]+))?((?:\[@?(?:!?[\w:-]+)(?:(?:[!*^$|~]?=)[\"']?(?:.*?)[\"']?)?(?:\s*?(?:[iIsS])?)?\])+)?([\/, >+~]+)/is";
878 $pattern,
905 /* Extract attributes (pattern based on the pattern above!)
2194 protected function remove_noise($pattern, $remove_tag = false)
2200 $pattern,