Lines Matching refs:decl
150 function &parse_color_declaration($decl) { argument
151 $color = _parse_color_declaration($decl, $success);
157 function _parse_color_declaration($decl, &$success) { argument
161 if (isset($g_colors[strtolower($decl)])) { return $g_colors[strtolower($decl)]; };
164 switch (strtolower($decl)) {
170 if (preg_match("/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/",$decl,$matches)) {
178 if (preg_match("/rgb\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/",$decl,$matches)) {
189 if (strlen($decl) > 0) {
190 if ($decl{0} !== "#") { $decl = "#" . $decl; };
194 if (preg_match("/^#([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})$/",$decl,$matches)) {
210 if (preg_match("/^#([[:xdigit:]])([[:xdigit:]])([[:xdigit:]])$/",$decl,$matches)) {