#include "glob-match.h"
Public Types | |
enum | opts { pathname = 1, noescape = 2, period = 4 } |
Public Member Functions | |
glob_match (const std::string &p, unsigned int xopts=pathname|noescape|period) | |
glob_match (const string_vector &p=string_vector(), unsigned int xopts=pathname|noescape|period) | |
glob_match (const glob_match &gm) | |
~glob_match (void)=default | |
string_vector | glob (void) const |
bool | match (const std::string &str) const |
Array< bool > | match (const string_vector &str) const |
glob_match & | operator= (const glob_match &gm) |
void | set_pattern (const std::string &p) |
void | set_pattern (const string_vector &p) |
Private Member Functions | |
int | opts_to_fnmatch_flags (unsigned int xopts) const |
Private Attributes | |
int | fnmatch_flags |
string_vector | pat |
Definition at line 33 of file glob-match.h.
enum glob_match::opts |
Enumerator | |
---|---|
pathname | |
noescape | |
period |
Definition at line 39 of file glob-match.h.
|
inline |
Definition at line 46 of file glob-match.h.
|
inline |
Definition at line 50 of file glob-match.h.
|
inline |
Definition at line 54 of file glob-match.h.
|
default |
string_vector glob_match::glob | ( | void | ) | const |
Definition at line 38 of file glob-match.cc.
References octave::sys::glob(), and pat.
bool glob_match::match | ( | const std::string & | str | ) | const |
Definition at line 32 of file glob-match.cc.
References octave::sys::fnmatch(), fnmatch_flags, pat, and str.
Referenced by octave::symbol_scope_rep::glob(), and save_fields().
|
inline |
Definition at line 75 of file glob-match.h.
|
inline |
Definition at line 57 of file glob-match.h.
References fnmatch_flags, and pat.
|
private |
Definition at line 44 of file glob-match.cc.
References noescape, octave_fnm_noescape_wrapper(), octave_fnm_pathname_wrapper(), octave_fnm_period_wrapper(), pathname, period, and retval.
|
inline |
Definition at line 69 of file glob-match.h.
References p.
|
inline |
Definition at line 71 of file glob-match.h.
References p.
|
private |
Definition at line 98 of file glob-match.h.
Referenced by match(), and operator=().
|
private |
Definition at line 95 of file glob-match.h.
Referenced by glob(), match(), and operator=().