Lines Matching refs:match
388 if (preg_match('/(.*?)\.svg$/i', $file, $match)) {
389 $exts[] = strtolower($match[1]);
483 * @param array $match see http://php.net/preg_replace_callback
486 public function replacements($match) argument
489 …if (preg_match('#^(/|data:|https?://)#', $match[3])) { // not a relative url? - no adjustment requ…
490 return $match[0];
491 …} elseif (str_ends_with($match[3], '.less')) { // a less file import? - requires a file system loc…
492 if ($match[3][0] != '/') {
493 $match[3] = $this->getRelativePath() . '/' . $match[3];
496 $match[3] = $this->location . $match[3];
499 return implode('', array_slice($match, 1));
508 * @param array $match
511 function css_datauri($match) argument
515 $pre = unslash($match[1]);
516 $base = unslash($match[2]);
517 $url = unslash($match[3]);
518 $ext = unslash($match[4]);
571 $quote_cb = function ($match) use (&$quote_storage) {
572 $quote_storage[] = $match[0];
636 $quote_back_cb = function ($match) use (&$quote_storage) {
637 return $quote_storage[$match[1]];