Readonly
caseWhether to ignore case when matching the unit.
Readonly
formatThe format of the string to parse.
Readonly
maxThe maximum number of decimal places to allow.
Readonly
unitsThe names of the units to parse.
Extract the value and unit from the given string.
The string to parse.
An object containing the value and unit, or null if the string does not match the format.
This class helps to extract a value and a unit from a string, by the given format.