summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/corestr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/corestr.cpp')
-rw-r--r--src/lib/util/corestr.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/util/corestr.cpp b/src/lib/util/corestr.cpp
index 4431f6d08ac..66b12f6ee04 100644
--- a/src/lib/util/corestr.cpp
+++ b/src/lib/util/corestr.cpp
@@ -107,6 +107,16 @@ int core_strwildcmp(const char *sp1, const char *sp2)
return core_stricmp(s1, s2);
}
+bool core_iswildstr(const char *sp)
+{
+ for ( ; sp && *sp; sp++)
+ {
+ if (('?' == *sp) || ('*' == *sp))
+ return true;
+ }
+ return false;
+}
+
/*-------------------------------------------------
core_strdup - string duplication via malloc