mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 22:12:20 +00:00
LibLocale: Remove (now) needless explicit enum class underlying types
This was useful for code generation as reducing the size of the enums had a notable impact on the size of the generated code. This is not the case any longer.
This commit is contained in:
parent
4de8adabac
commit
b2f7073539
Notes:
sideshowbarker
2024-07-17 07:31:31 +09:00
Author: https://github.com/trflynn89
Commit: b2f7073539
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/176
4 changed files with 10 additions and 10 deletions
|
@ -25,7 +25,7 @@ enum class DateTimeStyle {
|
||||||
DateTimeStyle date_time_style_from_string(StringView);
|
DateTimeStyle date_time_style_from_string(StringView);
|
||||||
StringView date_time_style_to_string(DateTimeStyle);
|
StringView date_time_style_to_string(DateTimeStyle);
|
||||||
|
|
||||||
enum class Weekday : u8 {
|
enum class Weekday {
|
||||||
Sunday,
|
Sunday,
|
||||||
Monday,
|
Monday,
|
||||||
Tuesday,
|
Tuesday,
|
||||||
|
@ -35,7 +35,7 @@ enum class Weekday : u8 {
|
||||||
Saturday,
|
Saturday,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class HourCycle : u8 {
|
enum class HourCycle {
|
||||||
H11,
|
H11,
|
||||||
H12,
|
H12,
|
||||||
H23,
|
H23,
|
||||||
|
@ -45,7 +45,7 @@ HourCycle hour_cycle_from_string(StringView hour_cycle);
|
||||||
StringView hour_cycle_to_string(HourCycle hour_cycle);
|
StringView hour_cycle_to_string(HourCycle hour_cycle);
|
||||||
Optional<HourCycle> default_hour_cycle(StringView locale);
|
Optional<HourCycle> default_hour_cycle(StringView locale);
|
||||||
|
|
||||||
enum class CalendarPatternStyle : u8 {
|
enum class CalendarPatternStyle {
|
||||||
Narrow,
|
Narrow,
|
||||||
Short,
|
Short,
|
||||||
Long,
|
Long,
|
||||||
|
|
|
@ -10,11 +10,11 @@
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
|
|
||||||
enum class CalendarPatternStyle : u8;
|
enum class CalendarPatternStyle;
|
||||||
enum class HourCycle : u8;
|
enum class HourCycle;
|
||||||
enum class PluralCategory : u8;
|
enum class PluralCategory;
|
||||||
enum class Style : u8;
|
enum class Style;
|
||||||
enum class Weekday : u8;
|
enum class Weekday;
|
||||||
|
|
||||||
class NumberFormat;
|
class NumberFormat;
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ struct LocaleID {
|
||||||
Vector<String> private_use_extensions {};
|
Vector<String> private_use_extensions {};
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class Style : u8 {
|
enum class Style {
|
||||||
Long,
|
Long,
|
||||||
Short,
|
Short,
|
||||||
Narrow,
|
Narrow,
|
||||||
|
|
|
@ -17,7 +17,7 @@ enum class PluralForm {
|
||||||
PluralForm plural_form_from_string(StringView);
|
PluralForm plural_form_from_string(StringView);
|
||||||
StringView plural_form_to_string(PluralForm);
|
StringView plural_form_to_string(PluralForm);
|
||||||
|
|
||||||
enum class PluralCategory : u8 {
|
enum class PluralCategory {
|
||||||
Other,
|
Other,
|
||||||
Zero,
|
Zero,
|
||||||
One,
|
One,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue