From 1f74222bf4cfadead768b095c6b3f8d422ebf84c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 11 Feb 2022 00:42:21 +0100 Subject: Add local-manga plugin to read local manga --- src/Body.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/Body.cpp') diff --git a/src/Body.cpp b/src/Body.cpp index dbc13af..4681410 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -1713,29 +1713,6 @@ namespace QuickMedia { return item_height; } - // TODO: Support utf-8 case insensitive find - static bool string_find_fuzzy_case_insensitive(const std::string &str, const std::string &substr) { - if(substr.empty()) return true; - - size_t str_index = 0; - bool full_match = true; - - string_split(substr, ' ', [&str, &str_index, &full_match](const char *str_part, size_t size) { - if(size == 0) return true; - - size_t found_index = str_find_case_insensitive(str, str_index, str_part, size); - if(found_index == std::string::npos) { - full_match = false; - return false; - } - - str_index = found_index + size; - return true; - }); - - return full_match; - } - void Body::filter_search_fuzzy(const std::string &text) { current_filter = text; -- cgit v1.2.3