37 abstract public function validate($string, $config, $context);
62 $string = trim($string);
63 $string = str_replace(array(
"\n",
"\t",
"\r"),
' ', $string);
72 public function make($string)
89 return preg_replace(
'/rgb\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\)/',
'rgb(\1,\2,\3)', $string);
100 for ($i = 0, $c = strlen($string); $i < $c; $i++) {
101 if ($string[$i] ===
'\\') {
107 if (ctype_xdigit($string[$i])) {
109 for ($a = 1, $i++; $i < $c && $a < 6; $i++, $a++) {
110 if (!ctype_xdigit($string[$i])) {
113 $code .= $string[$i];
123 if ($i < $c && trim($string[$i]) !==
'') {
128 if ($string[$i] ===
"\n") {