Public Member Functions | |
Entry (const string &orig_prefix, const string &replacement_prefix) | |
Entry (const Entry ©) | |
void | operator= (const Entry ©) |
bool | try_match (const Filename &filename, Filename &new_filename) const |
Considers whether the indicated filename matches this entry's prefix. | |
size_t | r_try_match (const vector_string &components, size_t oi, size_t ci) const |
The recursive implementation of try_match(). | |
Public Attributes | |
string | _orig_prefix |
Components | _orig_components |
bool | _is_local |
string | _replacement_prefix |
|
Definition at line 227 of file pathReplace.cxx. References _is_local, _replacement_prefix, Filename::extract_components(), Filename::is_local(), r_try_match(), and size_t. |
|
Definition at line 187 of file pathReplace.I. |
|
Definition at line 204 of file pathReplace.I. |
|
The recursive implementation of try_match(). Actually, this is doubly-recursive, to implement the "**" feature. The return value is the number of the "components" vector that successfully matched against all of the orig_components. (It's a variable number because there might be one or more "**" entries.) Definition at line 315 of file pathReplace.cxx. Referenced by Entry(), and try_match(). |
|
Considers whether the indicated filename matches this entry's prefix. If so, switches the prefix and stores the result in new_filename, and returns true; otherwise, returns false. Definition at line 267 of file pathReplace.cxx. References PathReplace::Component::_double_star, _orig_components, PathReplace::Component::_orig_prefix, GlobPattern::matches(), r_try_match(), and size_t. Referenced by PathReplace::~PathReplace(). |
|
Definition at line 112 of file pathReplace.h. Referenced by Entry(). |
|
Definition at line 111 of file pathReplace.h. Referenced by try_match(). |
|
Definition at line 110 of file pathReplace.h. |
|
Definition at line 113 of file pathReplace.h. Referenced by Entry(). |