Class able to deal with scientific units and make the appropriate
conversions, according to the
"Adopted Standards for Astronomical Catalogues"
(http://vizier.u-strasbg.fr/doc/catstd.htx)
The recursive definition is as follows:
Full_Unit = factor Complex_unit
Complex_Unit = single_Unit
| single_Unit OP single_Unit
| "log[" single_Unit OP single_Unit "]"
| "mag[" single_Unit OP single_Unit "]"
single_Unit = extended_UnitSymbol
| extended_UnitSymbol power
extended_UnitSymbol = UnitSymbol
| Magnitude_Prefix UnitSymbol
| "(" Full_Unit ")"
power = Number
| +Number
| -Number
OP = . | /
Basically, a unit consists in a value associated to a
unit symbol which is itself related to the SI
(Système International).
MOD-BB DEplacement de cette methode qui se trouvait dans la classe org.friday.util.TextUtils
Replace escape sequences using back-slashes by the special characters
they represent.