summaryrefslogtreecommitdiffstats
path: root/XUtils.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2022-03-25 16:24:24 +0100
committerDaniel Lange <DLange@git.local>2022-03-25 17:19:59 +0100
commit7c43e02591de9b6e14744e3eaffed25ad092756e (patch)
tree31434fb6a9d4f658c1812d9298a4424cab34ffb9 /XUtils.h
parenta2ca7583a9ba2e57eb9e9316aad52c9248aae092 (diff)
Improve String_contains_i to allow for multiple terms
This enables: * Multiple filters in the main panel and strace etc. views * Multiple search terms The search terms are separated by "|" and are still fixed strings matched case-insensitive. Added a multi flag at request of BenBE.
Diffstat (limited to 'XUtils.h')
-rw-r--r--XUtils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/XUtils.h b/XUtils.h
index 6c096df4..2522a71f 100644
--- a/XUtils.h
+++ b/XUtils.h
@@ -40,7 +40,7 @@ static inline bool String_startsWith(const char* s, const char* match) {
return strncmp(s, match, strlen(match)) == 0;
}
-bool String_contains_i(const char* s1, const char* s2);
+bool String_contains_i(const char* s1, const char* s2, bool multi);
static inline bool String_eq(const char* s1, const char* s2) {
return strcmp(s1, s2) == 0;

© 2014-2024 Faster IT GmbH | imprint | privacy policy