Dear ICU Committee,
I'd like to introduce a proposed design for a Units Converter API in ICU. This API aims to provide convenient and flexible unit conversion functionality within ICU.
The API utilizes a
fluent pattern for
essential options and a
builder pattern for
optional settings. The initial focus is on CompoundUnitsConverter, with plans to expand to Complex and LocaleAware converters in the future.
Attached is a
design document that details the API and includes usage examples for Compound, Complex, and LocaleAware converters. It also outlines the design for the CompoundUnitsConverter in both ICU4C and ICU4J.
I welcome your feedback and suggestions on this proposal. Please let me know if you have any questions.