SimplePath

Common definitions for a deduplicated trie for paths.

Constructors

this
this(typeof(this)* parent, NameString name)
Undocumented in source.

Members

Aliases

NameString
alias NameString = InlineString!23
Undocumented in source.

Functions

appendName
typeof(this)* appendName(char[] name)

Append a single path segment to this one.

appendPath
typeof(this)* appendPath(char[] path)
typeof(this)* appendPath(SubPath* path)
typeof(this)* appendPath(GlobalPath* path)

Append a normalized relative string path to this one.

humanName
string humanName()
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
inout(typeof(this)*) opBinaryRight(char[] name)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
inout(typeof(this)) opIndex(char[] name)
Undocumented in source. Be warned that the author may not have intended to support it.
range
auto range()

Return an iterator for path fragments. Iterates from inner-most to top level.

toString
void toString(void delegate(const(char)[]) sink)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

firstChild
typeof(this)* firstChild;

Directory items, if any

name
NameString name;

Base name Names prefixed with a NUL character indicate "special" nodes, which do not correspond to a filesystem path.

nextSibling
typeof(this)* nextSibling;

Next item in the parent directory, if any

parent
typeof(this)* parent;

Parent directory

Meta