Lines Matching defs:match
390 if (preg_match('/(.*?)\.svg$/i', $file, $match)) {
391 $exts[] = strtolower($match[1]);
485 * @param array $match see http://php.net/preg_replace_callback
488 public function replacements($match)
491 if (preg_match('#^(/|data:|https?://)#', $match[3])) { // not a relative url? - no adjustment required
492 return $match[0];
493 } elseif (str_ends_with($match[3], '.less')) { // a less file import? - requires a file system location
494 if ($match[3][0] != '/') {
495 $match[3] = $this->getRelativePath() . '/' . $match[3];
498 $match[3] = $this->location . $match[3];
501 return implode('', array_slice($match, 1));
510 * @param array $match
513 function css_datauri($match)
517 $pre = unslash($match[1]);
518 $base = unslash($match[2]);
519 $url = unslash($match[3]);
520 $ext = unslash($match[4]);
573 $quote_cb = function ($match) use (&$quote_storage) {
574 $quote_storage[] = $match[0];
638 $quote_back_cb = function ($match) use (&$quote_storage) {
639 return $quote_storage[$match[1]];