ladybird/Userland/Libraries/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
..
CharacterTypes.cpp Meta+LibUnicode: Provide code point names through library 2021-11-20 00:31:55 +01:00
CharacterTypes.h Meta+LibUnicode: Provide code point names through library 2021-11-20 00:31:55 +01:00
CMakeLists.txt LibUnicode: Parse and generate date, time, and date-time format patterns 2021-11-29 22:48:46 +00:00
CurrencyCode.cpp LibUnicode: Add some data related to currency codes 2021-09-11 11:05:50 +01:00
CurrencyCode.h LibUnicode: Add some data related to currency codes 2021-09-11 11:05:50 +01:00
DateTimeFormat.cpp LibUnicode: Parse and generate regional hour cycles 2021-11-29 22:48:46 +00:00
DateTimeFormat.h LibUnicode: Parse and generate regional hour cycles 2021-11-29 22:48:46 +00:00
Forward.h LibUnicode: Parse and generate regional hour cycles 2021-11-29 22:48:46 +00:00
Locale.cpp LibJS+LibUnicode: Separate number formatting methods from Locale.h 2021-11-29 22:48:46 +00:00
Locale.h LibJS+LibUnicode: Separate number formatting methods from Locale.h 2021-11-29 22:48:46 +00:00
NumberFormat.cpp LibJS+LibUnicode: Separate number formatting methods from Locale.h 2021-11-29 22:48:46 +00:00
NumberFormat.h LibJS+LibUnicode: Separate number formatting methods from Locale.h 2021-11-29 22:48:46 +00:00