Converts import/namespace urls into strings
Paramètres
(string) row: At-rule:
1 call to CSSCompression_Setup::liner()
- CSSCompression_Setup::setup dans advagg_css_compress/
css-compressor-3.x/ src/ lib/ Setup.inc - Setup selector and details arrays for compression methods
Fichier
-
advagg_css_compress/
css-compressor-3.x/ src/ lib/ Setup.inc, line 219
Classe
- CSSCompression_Setup
- CSS Compressor [VERSION] [DATE] Corey Hart @ http://www.codenothing.com
Code
private function liner($row) {
$pos = 0;
while (preg_match($this->rurl, $row, $match, PREG_OFFSET_CAPTURE, $pos)) {
$quote = preg_match($this->rsinglequote, $match[1][0]) ? '"' : "'";
$replace = $quote . $match[1][0] . $quote;
$row = substr_replace($row, $replace, $match[0][1], strlen($match[0][0]));
$pos = $match[0][1] + strlen($replace);
}
return $row;
}