diff options
author | demostanis <demostanis@protonmail.com> | 2022-10-22 15:38:21 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-24 23:29:18 +0100 |
commit | 3e8b5ac92012e19847e536a20a3f0ec7e5c787d3 (patch) | |
tree | 58294f8f5e5eeaa63231876148da783ca81015eb /Meta/Lagom/Tools/CodeGenerators/LibLocale/GeneratePluralRulesData.cpp | |
parent | f485db2501c32bd626d58973c8a34a81e09ca5dc (diff) | |
download | serenity-3e8b5ac92012e19847e536a20a3f0ec7e5c787d3.zip |
AK+Everywhere: Turn bool keep_empty to an enum in split* functions
Diffstat (limited to 'Meta/Lagom/Tools/CodeGenerators/LibLocale/GeneratePluralRulesData.cpp')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibLocale/GeneratePluralRulesData.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibLocale/GeneratePluralRulesData.cpp b/Meta/Lagom/Tools/CodeGenerators/LibLocale/GeneratePluralRulesData.cpp index 46af3a493d..3ad8d769a3 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibLocale/GeneratePluralRulesData.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibLocale/GeneratePluralRulesData.cpp @@ -258,7 +258,7 @@ static Relation parse_relation(StringView relation) parsed.symbol = lhs[0]; } - rhs.for_each_split_view(set_operator, false, [&](auto set) { + rhs.for_each_split_view(set_operator, SplitBehavior::Nothing, [&](auto set) { if (auto index = set.find(range_operator); index.has_value()) { auto range_begin = set.substring_view(0, *index).to_uint(); VERIFY(range_begin.has_value()); @@ -313,10 +313,10 @@ static void parse_condition(StringView category, StringView rule, Conditions& ru // and_condition = relation ('and' relation)* // // This affords some simplicity in that disjunctions are never embedded within a conjunction. - condition.for_each_split_view(disjunction_keyword, false, [&](auto disjunction) { + condition.for_each_split_view(disjunction_keyword, SplitBehavior::Nothing, [&](auto disjunction) { Vector<Relation> conjunctions; - disjunction.for_each_split_view(conjunction_keyword, false, [&](auto relation) { + disjunction.for_each_split_view(conjunction_keyword, SplitBehavior::Nothing, [&](auto relation) { conjunctions.append(parse_relation(relation)); }); |