Lines Matching defs:matches
318 if (preg_match($pattern . 'i', $user_agent, $matches)) {
319 if (1 == count($matches)) {
328 array_shift($matches);
330 $match_string = self::COMPRESSION_PATTERN_START . implode(self::COMPRESSION_PATTERN_DELIMITER, $matches);
345 $this->_pregUnQuote($pattern, $simple_match ? false : $matches)
536 $matches_count = preg_match_all('@\d@', $pattern, $matches);
547 $tmp_patterns[$compressed_pattern][$i] = $matches[0];
620 * All numbers are taken out into $matches, so we check if any of those numbers are identical
621 * in all the $matches and if they are we restore them to the $pattern, removing from the $matches.
622 * This gives us patterns with "(\d)" only in places that differ for some matches.
624 * @param array $matches
627 * @return array of $matches
629 protected function deduplicateCompressionPattern($matches, &$pattern)
631 $tmp_matches = $matches;
646 foreach ($matches as $i => $some_match)
688 * @param array $matches
692 protected function _pregUnQuote($pattern, $matches)
701 if ($matches)
703 foreach ($matches as $one_match)