Class NumberComparator
NumberComparator compiles a simple comparison to an anonymous subroutine, which you can call with a value to be tested again.
Now this would be very pointless, if NumberCompare didn't understand magnitudes.
The target value may use magnitudes of kilobytes (k, ki), megabytes (m, mi), or gigabytes (g, gi). Those suffixed with an i use the appropriate 2**n version in accordance with the IEC standard: http://physics.nist.gov/cuu/Units/binary.html
Based on the Perl Number::Compare module.
- Symfony\Component\Finder\Comparator\Comparator
- Symfony\Component\Finder\Comparator\NumberComparator
Namespace: Symfony\Component\Finder\Comparator
Copyright: 2004-2005 Fabien Potencier <fabien@symfony.com>
Copyright: 2002 Richard Clamp <richardc@unixbeard.net>
Author: Fabien Potencier <fabien@symfony.com> PHP port
Author: Richard Clamp <richardc@unixbeard.net> Perl version
See: http://physics.nist.gov/cuu/Units/binary.html
Located at finder/Symfony/Component/Finder/Comparator/NumberComparator.php
Copyright: 2004-2005 Fabien Potencier <fabien@symfony.com>
Copyright: 2002 Richard Clamp <richardc@unixbeard.net>
Author: Fabien Potencier <fabien@symfony.com> PHP port
Author: Richard Clamp <richardc@unixbeard.net> Perl version
See: http://physics.nist.gov/cuu/Units/binary.html
Located at finder/Symfony/Component/Finder/Comparator/NumberComparator.php
public
|
getOperator(),
getTarget(),
setOperator(),
setTarget(),
test()
|