Open
Description
This issue pertains to the get_power and get_si_prefix functions in the MeasureUnit struct in the experimental/unitsconversion/src/measureunit.rs file. These functions are responsible for extracting the power and SI prefix from a CLDR units string, respectively.
Right now, we are using just a bunch of if and else statements. Which is not the most efficient way.
Option 1:
- Use
zerotrie
and store it. Because it will be used while extracting the measurementunit fromcldr-id
Aslo, implement strip_prefix
in zerotrie