Lines Matching defs:pattern
785 protected function match($exp, $pattern, $value, $case_sensitivity)
791 $pattern = strtolower($pattern);
797 return ($value === $pattern);
799 return ($value !== $pattern);
801 return preg_match('/^' . preg_quote($pattern, '/') . '/', $value);
803 return preg_match('/' . preg_quote($pattern, '/') . '$/', $value);
805 return preg_match('/' . preg_quote($pattern, '/') . '/', $value);
814 return strpos($value, $pattern) === 0;
825 return in_array($pattern, explode(' ', trim($value)), true);
879 $pattern = "/([\w:\*-]*)(?:\#([\w-]+))?(?:|\.([\w\.-]+))?((?:\[@?(?:!?[\w:-]+)(?:(?:[!*^$|~]?=)[\"']?(?:.*?)[\"']?)?(?:\s*?(?:[iIsS])?)?\])+)?([\/, >+~]+)/is";
882 $pattern,
909 /* Extract attributes (pattern based on the pattern above!)
2200 protected function remove_noise($pattern, $remove_tag = false)
2206 $pattern,