From: Shilpa Jagannath Date: Fri, 9 Aug 2024 17:14:52 +0000 (-0700) Subject: Merge pull request #57901 from adamemerson/wip-62292-reef X-Git-Tag: v18.2.5~464 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f5af36e41a4be54dad5211c2711c3d3163fd7780;p=ceph.git Merge pull request #57901 from adamemerson/wip-62292-reef reef: rgw: modify string match_wildcards with fnmatch --- f5af36e41a4be54dad5211c2711c3d3163fd7780 diff --cc src/rgw/rgw_common.h index 582f9c522196,35cd53f598d8..f9dc3951533e --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@@ -1755,11 -1753,11 +1755,11 @@@ static constexpr uint32_t MATCH_POLICY_ static constexpr uint32_t MATCH_POLICY_ARN = 0x04; static constexpr uint32_t MATCH_POLICY_STRING = 0x08; - extern bool match_policy(std::string_view pattern, std::string_view input, + extern bool match_policy(const std::string& pattern, const std::string& input, uint32_t flag); -extern std::string camelcase_dash_http_attr(const std::string& orig); -extern std::string lowercase_dash_http_attr(const std::string& orig); +extern std::string camelcase_dash_http_attr(const std::string& orig, bool convert2dash = true); +extern std::string lowercase_dash_http_attr(const std::string& orig, bool bidirection = false); void rgw_setup_saved_curl_handles(); void rgw_release_all_curl_handles();