thirdparty/htmlpurifier-4.0.0-lite/library/HTMLPurifier/Length.php
public function compareTo($l) {
        if ($l === false) return false;
        if ($l->unit !== $this->unit) {
            $converter = new HTMLPurifier_UnitConverter();
            $l = $converter->convert($l, $this->unit);
            if ($l === false) return false;
        }
        return $this->n - $l->n;
    }
public function compareTo($l) {
        if ($l === false) return false;
        if ($l->unit !== $this->unit) {
            $converter = new HTMLPurifier_UnitConverter();
            $l = $converter->convert($l, $this->unit);
            if ($l === false) return false;
        }
        return $this->n - $l->n;
    }
public function compareTo ( $ l ) { if ( $ l === false ) return false ; if ( $ l -> unit !== $ this -> unit ) { $ converter = new HTMLPurifier_UnitConverter ( ) ; $ l = $ converter -> convert ( $ l , $ this -> unit ) ; if ( $ l === false ) return false ; } return $ this -> n - $ l -> n ; }
Compares two lengths, and returns 1 if greater, -1 if less and 0 if equal.
@warning If both values are too large or small, this calculation will
not work properly
Compares two lengths and returns 1 if greater - 1 if less and 0 if equal .