1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:57:46 +00:00

LibUnicode: Use LibTimeZone's list of time zone names

LibUnicode no longer needs to generate a list of time zone names that it
parsed from metaZones.json. We can defer to the TZDB for a golden list
of time zones.
This commit is contained in:
Timothy Flynn 2022-01-07 08:43:23 -05:00 committed by Linus Groh
parent ca9123f66f
commit 498b741434
7 changed files with 27 additions and 28 deletions

View file

@ -4,7 +4,7 @@ if (DEFINED UNICODE_DATA_SOURCES)
set(SOURCES ${UNICODE_DATA_SOURCES})
serenity_lib(LibUnicodeData unicodedata)
target_compile_options(LibUnicodeData PRIVATE -g0 -Os)
target_link_libraries(LibUnicodeData LibCore)
target_link_libraries(LibUnicodeData LibCore LibTimeZone)
endif()
set(SOURCES

View file

@ -91,7 +91,6 @@ StringView calendar_pattern_style_to_string(CalendarPatternStyle style)
Optional<Calendar> __attribute__((weak)) calendar_from_string(StringView) { return {}; }
Optional<HourCycleRegion> __attribute__((weak)) hour_cycle_region_from_string(StringView) { return {}; }
Optional<TimeZone> __attribute__((weak)) time_zone_from_string(StringView) { return {}; }
Vector<HourCycle> __attribute__((weak)) get_regional_hour_cycles(StringView) { return {}; }
// https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table

View file

@ -174,7 +174,6 @@ StringView calendar_pattern_style_to_string(CalendarPatternStyle style);
Optional<Calendar> calendar_from_string(StringView calendar);
Optional<HourCycleRegion> hour_cycle_region_from_string(StringView hour_cycle_region);
Optional<TimeZone> time_zone_from_string(StringView time_zone);
Vector<HourCycle> get_regional_hour_cycles(StringView region);
Vector<Unicode::HourCycle> get_locale_hour_cycles(StringView locale);

View file

@ -35,7 +35,6 @@ enum class ScriptTag : u8;
enum class StandardNumberFormatType : u8;
enum class Style : u8;
enum class Territory : u8;
enum class TimeZone : u16;
enum class Weekday : u8;
enum class WordBreakProperty : u8;