Searched defs:glob (Results 1 - 2 of 2) sorted by relevance

/bind-9.6-ESV-R11/unit/atf-src/atf-c++/detail/
H A Dexpand.cpp45 glob_to_regex(const std::string& glob) argument
48 regex.reserve(glob.length() * 2);
51 for (std::string::const_iterator iter = glob.begin(); iter != glob.end();
71 impl::is_glob(const std::string& glob) argument
74 return glob.find_first_of("*?") != std::string::npos;
78 impl::matches_glob(const std::string& glob, const std::string& candidate) argument
80 return atf::text::match(candidate, glob_to_regex(glob));
H A Dexpand.hpp44 //! \brief Checks if the given string is a glob pattern.
46 //! Returns true if the given string is a glob pattern; i.e. if it contains
52 //! \brief Checks if a given string matches a glob pattern.
54 //! Given a glob pattern and a string, checks whether the former matches
60 //! \brief Expands a glob pattern among multiple candidates.
62 //! Given a glob pattern and a set of candidate strings, checks which of
63 //! those strings match the glob pattern and returns them.
66 std::vector< std::string > expand_glob(const std::string& glob, argument
73 if (matches_glob(glob, *iter))

Completed in 12 milliseconds