<p>This is a utility class used by selectors and DirectoryScanner. The functionality more properly belongs just to selectors, but unfortunately DirectoryScanner exposed these as protected methods. Thus we have to support any subclasses of DirectoryScanner that may access these methods.
This is a Singleton.
| author |
Hans Lellelid, hans@xmpl.org (Phing) |
|---|---|
| author |
Arnout J. Kuiper, ajkuiper@wxs.nl (Ant) |
| author |
Magesh Umasankar |
| author |
Bruce Atherton, bruce@callenish.com (Ant) |
| package |
phing.types.selectors |
getInstance()
matchPatternStart($pattern, $str, $isCaseSensitive = true) : \whether
<
p>
This is not a general purpose test and should only be used if you
can live with false positives. For example, pattern=**\a
and str=b will yield true.
\whetheror not a given path matches the start of a given pattern up to the first "**".
matchPath($pattern, $str, $isCaseSensitive = true) : \<code>true</code>
\trueif the pattern matches against the string,
or false otherwise.
match($pattern, $str, $isCaseSensitive = true) : \<code>true</code>
The pattern may contain two special characters:
'*' means zero or more characters
'?' means one and only one character
\trueif the string matches against the pattern,
or false otherwise.
isOutOfDate(\PhingFile $src, \PhingFile $target, int $granularity) : \whether
intthe amount in seconds of slack we will give in determining out of dateness
\whetherthe target is out of date
instance :