A Path tokenizer takes a path and returns the components that make up
that path.
The path can use path separators of either ':' or ';' and file separators
of either '/' or '\'.
| author |
Hans Lellelid hans@xmpl.org (Phing) |
|---|---|
| author |
Conor MacNeill (Ant) |
| author |
Jeff Tulley jtulley@novell.com (Ant) |
| package |
phing.util |
__construct($path)
hasMoreTokens() : \<code>true</code>
path. If this method returns true, then a subsequent call
to nextToken will successfully return a token.
\trueif and only if there is at least one token
in the string after the current position; false otherwise.
nextToken() : \the
| throws |
if there are no more elements in this tokenizer's path. |
|---|
\thenext path element from this tokenizer.
contains(string $path) : boolean
We can do this easily because in PHP implimentation we're using arrays.
stringpath to search for.
boolean
tokens :
lookahead : string
due to DOS filesystem compensation.
| var |
|---|
string
dosStyleFilesystem : boolean
DOS style filesystem
| var |
|---|
boolean