1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 17:58:11 +00:00

LibUnicode: Parse and generate per-locale day period ranges

This commit is contained in:
Timothy Flynn 2021-12-10 12:57:17 -05:00 committed by Linus Groh
parent fa8e881cfa
commit a417c23de0
3 changed files with 117 additions and 2 deletions

View file

@ -246,6 +246,15 @@ Optional<StringView> get_calendar_day_period_symbol([[maybe_unused]] StringView
#endif
}
Optional<StringView> get_calendar_day_period_symbol_for_hour([[maybe_unused]] StringView locale, [[maybe_unused]] StringView calendar, [[maybe_unused]] CalendarPatternStyle style, [[maybe_unused]] u8 hour)
{
#if ENABLE_UNICODE_DATA
return Detail::get_calendar_day_period_symbol_for_hour(locale, calendar, style, hour);
#else
return {};
#endif
}
Optional<StringView> get_time_zone_name([[maybe_unused]] StringView locale, [[maybe_unused]] StringView time_zone, [[maybe_unused]] CalendarPatternStyle style)
{
#if ENABLE_UNICODE_DATA