Add API to get MeasureUnit instance from unit identifier string

Description

CLDR has specified a unit identifier syntax, which can optionally include the type prefix. Right now, the user has to use the getAvailableUnits() API and loop over all MeasureUnit instances manually to get an instance given a string identifier. It would be easier and more efficient to expose an API to automatically parse the identifier.

Would need to consider how to handle custom compound units.

Assignee

Shane Carr

Reporter

Shane Carr

Components

Labels

Reviewer

None

Priority

medium

Time Needed

Days

Fix versions

Configure