]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_string.h
update sources to v12.1.3
[ceph.git] / ceph / src / rgw / rgw_string.h
index 062880cc1acac23830ae88a4911eb730c7f895ce..c56667533c099571ace87fb4dbc43d4d07278ffc 100644 (file)
@@ -223,4 +223,14 @@ std::string string_join_reserve(char delim, const Args&... args)
   return string_join_reserve(boost::string_view{&delim, 1}, args...);
 }
 
+
+/// use case-insensitive comparison in match_wildcards()
+static constexpr uint32_t MATCH_CASE_INSENSITIVE = 0x01;
+
+/// attempt to match the given input string with the pattern, which may contain
+/// the wildcard characters * and ?
+extern bool match_wildcards(boost::string_view pattern,
+                            boost::string_view input,
+                            uint32_t flags = 0);
+
 #endif