#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) | |
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 31 of file glob-match.h.
enum glob_match::opts |
Definition at line 37 of file glob-match.h.
glob_match::glob_match | ( | const std::string & | p, | |
unsigned int | xopts = pathname|noescape|period | |||
) | [inline] |
Definition at line 44 of file glob-match.h.
glob_match::glob_match | ( | const string_vector & | p = string_vector () , |
|
unsigned int | xopts = pathname|noescape|period | |||
) | [inline] |
Definition at line 48 of file glob-match.h.
glob_match::glob_match | ( | const glob_match & | gm | ) | [inline] |
Definition at line 52 of file glob-match.h.
glob_match::~glob_match | ( | void | ) | [inline] |
Definition at line 65 of file glob-match.h.
string_vector glob_match::glob | ( | void | ) | const |
Definition at line 39 of file glob-match.cc.
References octave_glob(), and pat.
Referenced by DEFUN(), and DEFUN_DLD().
Array<bool> glob_match::match | ( | const string_vector & | str | ) | const [inline] |
Definition at line 73 of file glob-match.h.
References Array< T >::length(), and match().
bool glob_match::match | ( | const std::string & | str | ) | const |
Definition at line 33 of file glob-match.cc.
References fnmatch_flags, octave_fnmatch(), and pat.
Referenced by symbol_table::clear_function_pattern(), DEFUN_DLD(), DEFUNX(), symbol_table::do_clear_global_pattern(), symbol_table::do_clear_variable_pattern(), symbol_table::do_glob(), symbol_table::glob_global_variables(), matches_patterns(), name_matches_any_pattern(), and save_fields().
glob_match& glob_match::operator= | ( | const glob_match & | gm | ) | [inline] |
Definition at line 55 of file glob-match.h.
References fnmatch_flags, and pat.
Definition at line 45 of file glob-match.cc.
void glob_match::set_pattern | ( | const string_vector & | p | ) | [inline] |
Definition at line 69 of file glob-match.h.
void glob_match::set_pattern | ( | const std::string & | p | ) | [inline] |
Definition at line 67 of file glob-match.h.
int glob_match::fnmatch_flags [private] |
Definition at line 96 of file glob-match.h.
Referenced by match(), and operator=().
string_vector glob_match::pat [private] |
Definition at line 93 of file glob-match.h.
Referenced by glob(), match(), and operator=().