diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-02-18 09:32:59 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-18 20:00:15 +0100 |
commit | b4113536ef6b4141c004ab008ca7fe9c8e35ed72 (patch) | |
tree | 63624a6016ebbf7b03ee534aac2672156f0c8f55 /Kernel/FileSystem | |
parent | a30e364f1a9fbfa392bb85da209f7cebcc36dedd (diff) | |
download | serenity-b4113536ef6b4141c004ab008ca7fe9c8e35ed72.zip |
LibJS: Use substrings-with-superstrings in Intl.NumberFormat's grouping
To add grouping to a number, we take a string such as "123456.123" and
break it into integer and fraction parts. Then we take the integer part
and break it into locale-specific sized groups to inject the locale's
group separator (e.g. a comma in en-US). We currently create new strings
for each of these groups. Instead, we can use the shared superstring
method to avoid all of that string copying.
Diffstat (limited to 'Kernel/FileSystem')
0 files changed, 0 insertions, 0 deletions