mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-19 01:22:54 +00:00
LibUnicode: Dynamically load the generated UnicodeDateTimeFormat symbols
This commit is contained in:
parent
a1f0ca59ae
commit
15e1498419
Notes:
sideshowbarker
2024-07-17 22:27:38 +09:00
Author: https://github.com/trflynn89
Commit: 15e1498419
Pull-request: https://github.com/SerenityOS/serenity/pull/11280
Reviewed-by: https://github.com/Hendiadyoin1
4 changed files with 106 additions and 121 deletions
|
@ -15,6 +15,7 @@
|
|||
# endif
|
||||
#else
|
||||
# include <AK/Function.h>
|
||||
# include <LibUnicode/DateTimeFormat.h>
|
||||
# include <LibUnicode/Locale.h>
|
||||
# include <LibUnicode/NumberFormat.h>
|
||||
#endif
|
||||
|
@ -117,6 +118,21 @@ Symbols const& Symbols::ensure_loaded()
|
|||
load_symbol(symbols.get_compact_number_system_formats, "unicode_get_compact_number_system_formats");
|
||||
load_symbol(symbols.get_unit_formats, "unicode_get_unit_formats");
|
||||
|
||||
load_symbol(symbols.get_regional_hour_cycles, "unicode_get_regional_hour_cycles");
|
||||
load_symbol(symbols.get_calendar_date_format, "unicode_get_calendar_date_format");
|
||||
load_symbol(symbols.get_calendar_time_format, "unicode_get_calendar_time_format");
|
||||
load_symbol(symbols.get_calendar_date_time_format, "unicode_get_calendar_date_time_format");
|
||||
load_symbol(symbols.get_calendar_available_formats, "unicode_get_calendar_available_formats");
|
||||
load_symbol(symbols.get_calendar_default_range_format, "unicode_get_calendar_default_range_format");
|
||||
load_symbol(symbols.get_calendar_range_formats, "unicode_get_calendar_range_formats");
|
||||
load_symbol(symbols.get_calendar_range12_formats, "unicode_get_calendar_range12_formats");
|
||||
load_symbol(symbols.get_calendar_era_symbol, "unicode_get_calendar_era_symbol");
|
||||
load_symbol(symbols.get_calendar_month_symbol, "unicode_get_calendar_month_symbol");
|
||||
load_symbol(symbols.get_calendar_weekday_symbol, "unicode_get_calendar_weekday_symbol");
|
||||
load_symbol(symbols.get_calendar_day_period_symbol, "unicode_get_calendar_day_period_symbol");
|
||||
load_symbol(symbols.get_calendar_day_period_symbol_for_hour, "unicode_get_calendar_day_period_symbol_for_hour");
|
||||
load_symbol(symbols.get_time_zone_name, "unicode_get_time_zone_name");
|
||||
|
||||
initialized = true;
|
||||
return symbols;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue