#include "glob-match.h"
Public Types | |
enum | opts { pathname = 1 , noescape = 2 , period = 4 } |
Public Member Functions | |
glob_match (const glob_match &gm)=default | |
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 (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)=default |
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 | m_fnmatch_flags |
string_vector | m_pat |
Definition at line 36 of file glob-match.h.
enum glob_match::opts |
Enumerator | |
---|---|
pathname | |
noescape | |
period |
Definition at line 42 of file glob-match.h.
|
inline |
Definition at line 49 of file glob-match.h.
|
inline |
Definition at line 54 of file glob-match.h.
|
default |
|
default |
string_vector glob_match::glob | ( | void | ) | const |
Definition at line 41 of file glob-match.cc.
Referenced by F__ftp_mput__(), Fglob(), and xzip().
bool glob_match::match | ( | const std::string & | str | ) | const |
Definition at line 35 of file glob-match.cc.
References fnmatch(), m_fnmatch_flags, and m_pat.
Referenced by symbol_table::clear_function_pattern(), call_stack::clear_global_variable_pattern(), symbol_cleaner::clear_symbols(), call_stack::do_global_who_two(), F__fnmatch__(), F__ftp_mget__(), symbol_info_accumulator::filter(), matches_patterns(), name_matches_any_pattern(), read_hdf5_data(), and load_save_system::save_fields().
|
inline |
Definition at line 71 of file glob-match.h.
References n, and string_vector::numel().
|
default |
|
private |
Definition at line 47 of file glob-match.cc.
References noescape, octave_fnm_noescape_wrapper(), octave_fnm_pathname_wrapper(), octave_fnm_period_wrapper(), pathname, and period.
|
inline |
Definition at line 65 of file glob-match.h.
|
inline |
Definition at line 67 of file glob-match.h.
|
private |
Definition at line 94 of file glob-match.h.
Referenced by match().
|
private |
Definition at line 91 of file glob-match.h.