From 85eb498c3384321e6a134c867a462ce0523ecb84 Mon Sep 17 00:00:00 2001 From: Blake-Madden Date: Sun, 15 Oct 2023 12:48:46 -0400 Subject: [PATCH] Reformat code --- src/swedish_stem.h | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/src/swedish_stem.h b/src/swedish_stem.h index 2c3e22f..2482c70 100644 --- a/src/swedish_stem.h +++ b/src/swedish_stem.h @@ -393,15 +393,24 @@ namespace stemming stem::update_r_sections(text); } else if (text.length() >= 4 && - (stem::is_either(text[text.length() - 4], common_lang_constants::LOWER_I, common_lang_constants::UPPER_I) || - stem::is_either(text[text.length() - 4], common_lang_constants::LOWER_K, common_lang_constants::UPPER_K) || - stem::is_either(text[text.length() - 4], common_lang_constants::LOWER_L, common_lang_constants::UPPER_L) || - stem::is_either(text[text.length() - 4], common_lang_constants::LOWER_N, common_lang_constants::UPPER_N) || - stem::is_either(text[text.length() - 4], common_lang_constants::LOWER_P, common_lang_constants::UPPER_P) || - stem::is_either(text[text.length() - 4], common_lang_constants::LOWER_R, common_lang_constants::UPPER_R) || - stem::is_either(text[text.length() - 4], common_lang_constants::LOWER_T, common_lang_constants::UPPER_T) || - stem::is_either(text[text.length() - 4], common_lang_constants::LOWER_U, common_lang_constants::UPPER_U) || - stem::is_either(text[text.length() - 4], common_lang_constants::LOWER_V, common_lang_constants::UPPER_V)) && + (stem::is_either(text[text.length() - 4], + common_lang_constants::LOWER_I, common_lang_constants::UPPER_I) || + stem::is_either(text[text.length() - 4], + common_lang_constants::LOWER_K, common_lang_constants::UPPER_K) || + stem::is_either(text[text.length() - 4], + common_lang_constants::LOWER_L, common_lang_constants::UPPER_L) || + stem::is_either(text[text.length() - 4], + common_lang_constants::LOWER_N, common_lang_constants::UPPER_N) || + stem::is_either(text[text.length() - 4], + common_lang_constants::LOWER_P, common_lang_constants::UPPER_P) || + stem::is_either(text[text.length() - 4], + common_lang_constants::LOWER_R, common_lang_constants::UPPER_R) || + stem::is_either(text[text.length() - 4], + common_lang_constants::LOWER_T, common_lang_constants::UPPER_T) || + stem::is_either(text[text.length() - 4], + common_lang_constants::LOWER_U, common_lang_constants::UPPER_U) || + stem::is_either(text[text.length() - 4], + common_lang_constants::LOWER_V, common_lang_constants::UPPER_V)) && stem::is_suffix_in_r1(text, /* öst (with valid character in front of it) */ common_lang_constants::LOWER_O_UMLAUTS, common_lang_constants::UPPER_O_UMLAUTS,