1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 22:54:57 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/LibUnicode
Timothy Flynn 48ce72e472 LibUnicode: Parse and generate regional hour cycles
Unlike most data in the CLDR, hour cycles are not stored on a per-locale
basis. Instead, they are keyed by a string that is usually a region, but
sometimes is a locale. Therefore, given a locale, to determine the hour
cycles for that locale, we:

    1. Check if the locale itself is assigned hour cycles.
    2. If the locale has a region, check if that region is assigned hour
       cycles.
    3. Otherwise, maximize that locale, and if the maximized locale has
       a region, check if that region is assigned hour cycles.
    4. If the above all fail, fallback to the "001" region.

Further, each locale's default hour cycle is the first assigned hour
cycle.
2021-11-29 22:48:46 +00:00
..
CMakeLists.txt LibUnicode: Create a nearly empty generator for date-time formatting 2021-11-29 22:48:46 +00:00
GenerateUnicodeData.cpp LibUnicode: Port GenerateUnicodeData to ErrorOr and LibMain 2021-11-23 22:58:05 +01:00
GenerateUnicodeDateTimeFormat.cpp LibUnicode: Parse and generate regional hour cycles 2021-11-29 22:48:46 +00:00
GenerateUnicodeLocale.cpp LibUnicode: Port generator utility methods to ErrorOr 2021-11-23 22:58:05 +01:00
GenerateUnicodeNumberFormat.cpp LibJS+LibUnicode: Separate number formatting methods from Locale.h 2021-11-29 22:48:46 +00:00
GeneratorUtil.h LibUnicode: Sort generated enums case-insensitively 2021-11-29 22:48:46 +00:00