mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibUnicode: Parse and generate per-locale day period ranges
This commit is contained in:
parent
fa8e881cfa
commit
a417c23de0
Notes:
sideshowbarker
2024-07-17 22:59:59 +09:00
Author: https://github.com/trflynn89
Commit: a417c23de0
Pull-request: https://github.com/SerenityOS/serenity/pull/11204
3 changed files with 117 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue