mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibUnicode: Extract the timeSeparator numeric symbol from CLDR
This will be used by Intl.DurationFormat
This commit is contained in:
parent
8e55eb960e
commit
573061e76c
Notes:
sideshowbarker
2024-07-17 09:48:04 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/573061e76c Pull-request: https://github.com/SerenityOS/serenity/pull/14437 Reviewed-by: https://github.com/linusg ✅
2 changed files with 3 additions and 0 deletions
|
@ -523,6 +523,8 @@ static ErrorOr<void> parse_number_systems(String locale_numbers_path, UnicodeLoc
|
|||
return Unicode::NumericSymbol::PercentSign;
|
||||
if (numeric_symbol == "plusSign"sv)
|
||||
return Unicode::NumericSymbol::PlusSign;
|
||||
if (numeric_symbol == "timeSeparator"sv)
|
||||
return Unicode::NumericSymbol::TimeSeparator;
|
||||
return {};
|
||||
};
|
||||
|
||||
|
|
|
@ -64,6 +64,7 @@ enum class NumericSymbol : u8 {
|
|||
NaN,
|
||||
PercentSign,
|
||||
PlusSign,
|
||||
TimeSeparator,
|
||||
};
|
||||
|
||||
Optional<StringView> get_default_number_system(StringView locale);
|
||||
|
|
Loading…
Reference in a new issue