GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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 |
Enumerator | |
---|---|
pathname | |
noescape | |
period |
Definition at line 37 of file glob-match.h.
|
inline |
Definition at line 44 of file glob-match.h.
|
inline |
Definition at line 48 of file glob-match.h.
|
inline |
Definition at line 52 of file glob-match.h.
|
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 F__ftp_mput__(), and Fglob().
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(), symbol_table::do_clear_global_pattern(), symbol_table::do_clear_variable_pattern(), symbol_table::do_glob(), F__fnmatch__(), F__ftp_mget__(), symbol_table::glob_global_variables(), matches_patterns(), name_matches_any_pattern(), read_hdf5_data(), and save_fields().
|
inline |
Definition at line 73 of file glob-match.h.
References Array< T >::length(), and match().
|
inline |
Definition at line 55 of file glob-match.h.
References fnmatch_flags, and pat.
Definition at line 45 of file glob-match.cc.
|
inline |
Definition at line 67 of file glob-match.h.
|
inline |
Definition at line 69 of file glob-match.h.
|
private |
Definition at line 96 of file glob-match.h.
Referenced by match(), and operator=().
|
private |
Definition at line 93 of file glob-match.h.
Referenced by glob(), match(), and operator=().