23 #if !defined (octave_glob_match_h)
24 #define octave_glob_match_h 1
45 unsigned int xopts = pathname|noescape|period)
46 : pat (p), fnmatch_flags (opts_to_fnmatch_flags (xopts)) { }
49 unsigned int xopts = pathname|noescape|period)
50 : pat (p), fnmatch_flags (opts_to_fnmatch_flags (xopts)) { }
53 : pat (gm.pat), fnmatch_flags (gm.fnmatch_flags) { }
71 bool match (
const std::string& str)
const;
79 for (
int i = 0; i < n; i++)
80 retval(i) =
match (str[i]);
98 int opts_to_fnmatch_flags (
unsigned int xopts)
const;
Array< bool > match(const string_vector &str) const
void set_pattern(const string_vector &p)
glob_match(const string_vector &p=string_vector(), unsigned int xopts=pathname|noescape|period)
glob_match(const std::string &p, unsigned int xopts=pathname|noescape|period)
octave_idx_type length(void) const
Number of elements in the array.
void set_pattern(const std::string &p)
glob_match(const glob_match &gm)
static bool match(const std::string &filename_arg, const std::string &path_elt_arg)