UnitParser code >
Unit parsing
The part of the code in charge of managing the unit parsing aspects is evidently one of the most important parts of a unit parsing library. In fact and contrary to what it might seem, all the UnitParser functionalities pursue the same goal: setting up a consistent environment allowing its unit-parsing expectations to be fulfilled.

UnitParser can easily extract valuable unit information from a wide variety of raw data (i.e., string variables with different unit-related contents). Its main features on this front are the following:
Delivering the aforementioned functionalities isn't easy because of the huge number of possible scenarios, even before considering further issues like auto-conversions (discussed in the next section). Nevertheless, it is possible to differentiate two main parts: