<i18n dev> RFR: 8289227: Support for BCP 47 Extension T - Transformed Content [v3]

Roger Riggs rriggs at openjdk.org
Mon Aug 1 14:04:46 UTC 2022


On Tue, 26 Jul 2022 20:52:20 GMT, Naoto Sato <naoto at openjdk.org> wrote:

> > I would suggest deferring the APIs for `getTransformedContentFields()` and `getTransformedContentSource()`.
> 
> OK, removed those two convenient APIs.

I expected much of the complexity of parsing and storing content transformed extension strings would be unnecessary without the APIs. The original string form of the extension should be sufficient for `Locale.getExtension`. It also adds quite a bit of complexity and overhead to getDisplayName to reconstruct the strings.  The correct syntax of the string can be checked with a RegEx in the builder. If a simpler implementation is sufficient, there is less code to maintain.

-------------

PR: https://git.openjdk.org/jdk/pull/9620


More information about the i18n-dev mailing list