unicode-org / icu4x

Solving i18n for client-side and resource-constrained environments.
https://icu4x.unicode.org
Other
1.37k stars 176 forks source link

Implement generalized decimal pattern parsing #567

Open sffc opened 3 years ago

sffc commented 3 years ago

In #541, I use a temporary decimal pattern parsing algorithm as a placeholder for the main one that we will need to write in order to handle the full spectrum of CLDR data.

This algorithm will need to:

I think we should consider following a model similar to that in DateTimeFormat, where we have a public Pattern type, which is serializable and allowed to live in the data struct, with a human-readable representation for JSON and a machine-readable representation for Bincode (and rkyv).

gregtatum commented 3 years ago

I think we should consider following a model similar to that in DateTimeFormat, where we have a public Pattern type, which is serializable and allowed to live in the data struct, with a human-readable representation for JSON and a machine-readable representation for Bincode (and rkyv).

👍

sffc commented 3 years ago

Dependency of #275

sffc commented 3 years ago

@younies is going to take a look at this.

sffc commented 2 years ago

Needed for currency. Assigning to @robertbastian