diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-11-16 13:53:45 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-11-16 23:14:09 +0000 |
commit | 04b8b87c17ba21d3969c0e5c52dc1b01eddd8b80 (patch) | |
tree | 9deb75b20fb22e85b85d6e1e7556ae9da426f948 /Userland/Libraries/LibSyntax | |
parent | 3b68370212cb33c1146a57b5cabee730fcfdc5a3 (diff) | |
download | serenity-04b8b87c17ba21d3969c0e5c52dc1b01eddd8b80.zip |
LibJS+LibUnicode: Support multiple identifiers within format pattern
This wasn't the case for compact patterns, but unit patterns can contain
multiple (up to 2, really) identifiers that must each be recognized by
LibJS.
Each generated NumberFormat object now stores an array of identifiers
parsed. The format pattern itself is encoded with the index into this
array for that identifier, e.g. the compact format string "0K" will
become "{number}{compactIdentifier:0}".
Diffstat (limited to 'Userland/Libraries/LibSyntax')
0 files changed, 0 insertions, 0 deletions