summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/corestr.h
diff options
context:
space:
mode:
author npwoods <npwoods@mess.org>2022-10-16 13:59:28 -0400
committer GitHub <noreply@github.com>2022-10-16 19:59:28 +0200
commit7ce32ff9440f9fc7a2204047da495a5c27bf186c (patch)
tree3b7aa626a914225f2e6ee9156cf3d2899514703c /src/lib/util/corestr.h
parent2aca0b248447b2c76d798773f99b3ec76781d8d8 (diff)
Modernize core_strwildcmp() and core_iswildstr() (#10344)
* Modernize core_strwildcmp() and core_iswildstr() - Changed parameters from 'const char *' to 'std::string_view' - Removed 16-character limit in core_strwildcmp()
Diffstat (limited to 'src/lib/util/corestr.h')
-rw-r--r--src/lib/util/corestr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/corestr.h b/src/lib/util/corestr.h
index d23609a20c1..a9fc52531c8 100644
--- a/src/lib/util/corestr.h
+++ b/src/lib/util/corestr.h
@@ -49,8 +49,8 @@ int core_strnicmp(const char *s1, const char *s2, size_t n);
/* additional string compare helper (up to 16 characters at the moment) */
-int core_strwildcmp(const char *sp1, const char *sp2);
-bool core_iswildstr(const char *sp);
+int core_strwildcmp(std::string_view s1, std::string_view s2);
+bool core_iswildstr(std::string_view s);
/* trim functions */
template <typename TPred>