Skip to content

Commit 85eb498

Browse files
committed
Reformat code
1 parent f445e22 commit 85eb498

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

src/swedish_stem.h

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -393,15 +393,24 @@ namespace stemming
393393
stem<string_typeT>::update_r_sections(text);
394394
}
395395
else if (text.length() >= 4 &&
396-
(stem<string_typeT>::is_either(text[text.length() - 4], common_lang_constants::LOWER_I, common_lang_constants::UPPER_I) ||
397-
stem<string_typeT>::is_either(text[text.length() - 4], common_lang_constants::LOWER_K, common_lang_constants::UPPER_K) ||
398-
stem<string_typeT>::is_either(text[text.length() - 4], common_lang_constants::LOWER_L, common_lang_constants::UPPER_L) ||
399-
stem<string_typeT>::is_either(text[text.length() - 4], common_lang_constants::LOWER_N, common_lang_constants::UPPER_N) ||
400-
stem<string_typeT>::is_either(text[text.length() - 4], common_lang_constants::LOWER_P, common_lang_constants::UPPER_P) ||
401-
stem<string_typeT>::is_either(text[text.length() - 4], common_lang_constants::LOWER_R, common_lang_constants::UPPER_R) ||
402-
stem<string_typeT>::is_either(text[text.length() - 4], common_lang_constants::LOWER_T, common_lang_constants::UPPER_T) ||
403-
stem<string_typeT>::is_either(text[text.length() - 4], common_lang_constants::LOWER_U, common_lang_constants::UPPER_U) ||
404-
stem<string_typeT>::is_either(text[text.length() - 4], common_lang_constants::LOWER_V, common_lang_constants::UPPER_V)) &&
396+
(stem<string_typeT>::is_either(text[text.length() - 4],
397+
common_lang_constants::LOWER_I, common_lang_constants::UPPER_I) ||
398+
stem<string_typeT>::is_either(text[text.length() - 4],
399+
common_lang_constants::LOWER_K, common_lang_constants::UPPER_K) ||
400+
stem<string_typeT>::is_either(text[text.length() - 4],
401+
common_lang_constants::LOWER_L, common_lang_constants::UPPER_L) ||
402+
stem<string_typeT>::is_either(text[text.length() - 4],
403+
common_lang_constants::LOWER_N, common_lang_constants::UPPER_N) ||
404+
stem<string_typeT>::is_either(text[text.length() - 4],
405+
common_lang_constants::LOWER_P, common_lang_constants::UPPER_P) ||
406+
stem<string_typeT>::is_either(text[text.length() - 4],
407+
common_lang_constants::LOWER_R, common_lang_constants::UPPER_R) ||
408+
stem<string_typeT>::is_either(text[text.length() - 4],
409+
common_lang_constants::LOWER_T, common_lang_constants::UPPER_T) ||
410+
stem<string_typeT>::is_either(text[text.length() - 4],
411+
common_lang_constants::LOWER_U, common_lang_constants::UPPER_U) ||
412+
stem<string_typeT>::is_either(text[text.length() - 4],
413+
common_lang_constants::LOWER_V, common_lang_constants::UPPER_V)) &&
405414
stem<string_typeT>::is_suffix_in_r1(text,
406415
/* öst (with valid character in front of it) */
407416
common_lang_constants::LOWER_O_UMLAUTS, common_lang_constants::UPPER_O_UMLAUTS,

0 commit comments

Comments
 (0)