ladybird/Meta/Lagom/Tools/CodeGenerators/LibUnicode
Timothy Flynn 12e7c0808a LibUnicode: Generate per-region week data
This includes:
* The minimum number of days in a week for that week to count as the
  first week of a new year.
* The day to be shown as the first day of the week in a calendar.
* The start/end days of the weekend.

Like the existing hour cycle data, week data is presented per-region in
the CLDR, rather than per-locale. The method to add likely subtags to a
locale to perform region lookups is the same.

The list of regions in the CLDR for hour cycle, minimum days, first day,
and weekend days are quite different. So rather than changing the
existing HourCycleRegion enum to a generic Region enum, we generate
separate enums for each of the week data fields. This allows each lookup
into these fields to remain simple array-based index access, without any
"jumps" for regions that don't have CLDR data for a field.
2022-07-06 16:56:42 +02:00
..
CMakeLists.txt Meta: Rename Lagom library target names from LagomFoo to LibFoo 2022-07-06 14:24:23 +02:00
GenerateUnicodeData.cpp AK: Use an enum instead of a bool for String::replace(all_occurences) 2022-07-06 11:12:45 +02:00
GenerateUnicodeDateTimeFormat.cpp LibUnicode: Generate per-region week data 2022-07-06 16:56:42 +02:00
GenerateUnicodeLocale.cpp LibUnicode: Generate per-locale text layout information 2022-07-06 16:56:42 +02:00
GenerateUnicodeNumberFormat.cpp AK: Use an enum instead of a bool for String::replace(all_occurences) 2022-07-06 11:12:45 +02:00
GenerateUnicodeRelativeTimeFormat.cpp LibUnicode: Port the CLDR time format generator to the stream API 2022-02-14 11:39:46 -05:00
GeneratorUtil.h AK: Use an enum instead of a bool for String::replace(all_occurences) 2022-07-06 11:12:45 +02:00