Lines Matching refs:unit
20 protected $unit; variable in HTMLPurifier_Length
46 $this->unit = $u !== false ? (string) $u : false;
61 $unit = substr($s, $n_length);
62 if ($unit === '') {
63 $unit = false;
65 return new HTMLPurifier_Length($n, $unit);
78 if ($this->n === '0' && $this->unit === false) {
81 if ($this->unit === false || !ctype_lower($this->unit)) {
82 $this->unit = strtolower($this->unit);
84 if (!isset(HTMLPurifier_Length::$allowedUnits[$this->unit])) {
106 return $this->n . $this->unit;
124 return $this->unit;
151 if ($l->unit !== $this->unit) {
153 $l = $converter->convert($l, $this->unit);