mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibUnicode: Parse and generate available candidate format patterns
These formats are used by ECMA-402 when neither a date nor time style is specified. In that case, these patterns are searched for a best match.
This commit is contained in:
parent
287d43f4be
commit
7872934861
Notes:
sideshowbarker
2024-07-17 23:22:44 +09:00
Author: https://github.com/trflynn89
Commit: 7872934861
Pull-request: https://github.com/SerenityOS/serenity/pull/11128
Reviewed-by: https://github.com/linusg ✅
3 changed files with 50 additions and 1 deletions
|
@ -63,4 +63,13 @@ Optional<CalendarFormat> get_calendar_format([[maybe_unused]] StringView locale,
|
|||
#endif
|
||||
}
|
||||
|
||||
Vector<CalendarPattern> get_calendar_available_formats([[maybe_unused]] StringView locale, [[maybe_unused]] StringView calendar)
|
||||
{
|
||||
#if ENABLE_UNICODE_DATA
|
||||
return Detail::get_calendar_available_formats(locale, calendar);
|
||||
#else
|
||||
return {};
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue