LibUnicode: Extract the timeSeparator numeric symbol from CLDR

This will be used by Intl.DurationFormat
This commit is contained in:
Idan Horowitz 2022-06-30 13:36:11 +03:00
parent 8e55eb960e
commit 573061e76c
Notes: sideshowbarker 2024-07-17 09:48:04 +09:00
2 changed files with 3 additions and 0 deletions

View file

@ -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 {};
};

View file

@ -64,6 +64,7 @@ enum class NumericSymbol : u8 {
NaN,
PercentSign,
PlusSign,
TimeSeparator,
};
Optional<StringView> get_default_number_system(StringView locale);