aboutsummaryrefslogtreecommitdiff
path: root/src/Body.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-02-11 00:42:21 +0100
committerdec05eba <dec05eba@protonmail.com>2022-02-11 00:42:21 +0100
commit1f74222bf4cfadead768b095c6b3f8d422ebf84c (patch)
tree39035288edb79852cef6237f0d7ab8ea146cf218 /src/Body.cpp
parent404ac476a213164a041f0f53be30855df815aa6a (diff)
Add local-manga plugin to read local manga
Diffstat (limited to 'src/Body.cpp')
-rw-r--r--src/Body.cpp23
1 files changed, 0 insertions, 23 deletions
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;