icu4x icon indicating copy to clipboard operation
icu4x copied to clipboard

Migrate Unicode Extension Keywords to ShortVec and improve macro

Open sffc opened this issue 3 years ago • 2 comments
trafficstars

Forked from #1800 to cover Unicode extension keywords.

We should be able to write:

locale!("en-US-u-ca-buddhist")

sffc avatar Jul 16 '22 03:07 sffc

@sffc Quick question: similar to the variants, I believe there should be some limitations on what we can parse in a const context. Will the locale macro only support a single unicode key value pair? What about other parts of Extensions e.g. Transform, Private? Unicode Attributes?

yzhang1994 avatar Jul 25 '22 17:07 yzhang1994

Good question; I want to start with just unicode::Keywords because those are the most common requirement. The other items can be added later if they are needed.

sffc avatar Jul 25 '22 17:07 sffc