1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-13 15:02:18 +00:00
serenity/Userland
Timothy Flynn a701ed52fc LibJS+LibUnicode: Fully implement currency number formatting
Currencies are a bit strange; the layout of currency data in the CLDR is
not particularly compatible with what ECMA-402 expects. For example, the
currency format in the "en" and "ar" locales for the Latin script are:

    en: "¤#,##0.00"
    ar: "¤\u00A0#,##0.00"

Note how the "ar" locale has a non-breaking space after the currency
symbol (¤), but "en" does not. This does not mean that this space will
appear in the "ar"-formatted string, nor does it mean that a space won't
appear in the "en"-formatted string. This is a runtime decision based on
the currency display chosen by the user ("$" vs. "USD" vs. "US dollar")
and other rules in the Unicode TR-35 spec.

ECMA-402 shies away from the nuances here with "implementation-defined"
steps. LibUnicode will store the data parsed from the CLDR however it is
presented; making decisions about spacing, etc. will occur at runtime
based on user input.
2021-11-13 11:52:45 +00:00
..
Applets Everywhere: Replace "virtual desktop" => "workspace" 2021-11-13 12:48:43 +01:00
Applications 3DFileViewer: Clean some code for increased readability on Mesh 2021-11-13 12:52:22 +01:00
Demos LibGfx: Use ErrorOr<T> for Bitmap::try_create() 2021-11-08 00:35:27 +01:00
DevTools Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
DynamicLoader Toolchain+Meta: Update LLVM version to 13.0.0 2021-10-17 17:09:58 +01:00
Games Solitaire: Fix 3 card draw from reversing after an undo 2021-11-10 20:15:09 -08:00
Libraries LibJS+LibUnicode: Fully implement currency number formatting 2021-11-13 11:52:45 +00:00
Services WindowServer: Clear active input tracking window on menu popup 2021-11-13 12:48:43 +01:00
Shell Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Utilities Utilities/grep: Implement using multiple patterns 2021-11-13 11:42:26 +01:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00