summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-02-18 09:32:59 -0500
committerAndreas Kling <kling@serenityos.org>2023-02-18 20:00:15 +0100
commitb4113536ef6b4141c004ab008ca7fe9c8e35ed72 (patch)
tree63624a6016ebbf7b03ee534aac2672156f0c8f55 /Kernel/FileSystem
parenta30e364f1a9fbfa392bb85da209f7cebcc36dedd (diff)
downloadserenity-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