26 #if ! defined (octave_glob_match_h)
27 #define octave_glob_match_h 1
29 #include "octave-config.h"
50 unsigned int xopts = pathname | noescape | period)
51 : m_pat (p), m_fnmatch_flags (opts_to_fnmatch_flags (xopts))
55 unsigned int xopts = pathname | noescape | period)
56 : m_pat (p), m_fnmatch_flags (opts_to_fnmatch_flags (xopts))
69 bool match (
const std::string& str)
const;
77 for (
int i = 0; i <
n; i++)
78 retval(i) = match (str[i]);
96 int opts_to_fnmatch_flags (
unsigned int xopts)
const;
Vector representing the dimensions (size) of an Array.
glob_match(const std::string &p, unsigned int xopts=pathname|noescape|period)
~glob_match(void)=default
glob_match(const glob_match &gm)=default
void set_pattern(const std::string &p)
Array< bool > match(const string_vector &str) const
glob_match(const string_vector &p=string_vector(), unsigned int xopts=pathname|noescape|period)
void set_pattern(const string_vector &p)
octave_idx_type numel(void) const
string_vector glob(const string_vector &pat)
octave_value::octave_value(const Array< char > &chm, char type) return retval