1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

LibUnicode: Generate CalendarSymbols in a predetermined order

Similar to commit 2a7f36b392, this change moves the generated
CalendarSymbol enumeration to the public LibUnicode/NumberFormat.h
header with a pre-defined set of symbols that we need. This is to
prepare for uniquely generating the CalendarSymbols structure.
This commit is contained in:
Timothy Flynn 2021-12-11 15:31:33 -05:00 committed by Brian Gianforcaro
parent cf8ef954e5
commit 62ff029890
2 changed files with 24 additions and 25 deletions

View file

@ -155,6 +155,13 @@ struct CalendarFormat {
CalendarPattern short_format {};
};
enum class CalendarSymbol : u8 {
DayPeriod,
Era,
Month,
Weekday,
};
HourCycle hour_cycle_from_string(StringView hour_cycle);
StringView hour_cycle_to_string(HourCycle hour_cycle);
CalendarPatternStyle calendar_pattern_style_from_string(StringView style);