# GlobPattern

from pandac.PandaModules import GlobPattern

Class : GlobPattern
Description : This class can be used to test for string matches against standard Unix-shell filename globbing conventions. It serves as a portable standin for the Posix fnmatch() call.
A GlobPattern is given a pattern string, which can contain operators like *, ?, and []. Then it can be tested against any number of candidate strings; for each candidate, it will indicate whether the string matches the pattern or not. It can be used, for example, to scan a directory for all files matching a particular pattern.

## Inheritance:

GlobPattern:

## Methods of GlobPattern:

getCaseSensitive
getPattern
hasGlobCharacters
matches
matchFiles
operator !=
operator <
operator =
operator ==
output
setCaseSensitive
setPattern

getCaseSensitive bool GlobPattern::get_case_sensitive(void) const; Description: Returns whether the match is case sensitive (true) or case insensitive (false). The default is case sensitive.

getPattern string const &GlobPattern::get_pattern(void) const; Description: Returns the pattern string that the GlobPattern object matches.

hasGlobCharacters bool GlobPattern::has_glob_characters(void) const; Undocumented function.

matches bool GlobPattern::matches(string const &candidate) const; Description: Returns true if the candidate string matches the pattern, false otherwise.

matchFiles int GlobPattern::match_files(vector< string > &results, Filename const &cwd = ((()))); Undocumented function.

operator != bool GlobPattern::operator !=(GlobPattern const &other) const; Description:

operator < bool GlobPattern::operator <(GlobPattern const &other) const; Description:

operator = void GlobPattern::operator =(GlobPattern const &copy); Description:

operator == bool GlobPattern::operator ==(GlobPattern const &other) const; Description:

output void GlobPattern::output(ostream &out) const; Description:

setCaseSensitive void GlobPattern::set_case_sensitive(bool case_sensitive); Description: Sets whether the match is case sensitive (true) or case insensitive (false). The default is case sensitive.

setPattern void GlobPattern::set_pattern(string const &pattern); Description: Changes the pattern string that the GlobPattern object matches.