PhpUnitsOfMeasure / php-units-of-measure

A library for handling physical quantities and the units of measure in which they're represented.
MIT License
305 stars 77 forks source link

Add ability to use uppercase si prefixes #55

Closed kticka closed 8 years ago

kticka commented 8 years ago

Sometimes it would be nice to have ability to use uppercase version on long si prefix. For example, currently im working with Autodesk Revit webservice, and from Revit i'm getting aliases like 'DUT_METERS' or 'DUT_MILLIMETERS'. So instead of breaking standart and using 'strtouper/strtolower' everywhere, I could just describe new aliases in uppercase.

triplepoint commented 8 years ago

Yea, I don't see the harm in this one; works for me.