GenericPath.Segment2

A single path segment.

Constructors

this
this(string name, char separator)

Constructs a new path segment including an optional trailing separator.

Members

Functions

opCast
GenericPath!F.Segment2 opCast()

Converts the segment to another path type.

opEquals
bool opEquals(Segment2 other)
bool opEquals(string name)

Compares two path segment names

Properties

encodedName
string encodedName [@property getter]

The encoded representation of the path segment name

hasSeparator
bool hasSeparator [@property getter]

Returns true iff the segment has a trailing path separator.

name
auto name [@property getter]

The (file/directory) name of the path segment.

separator
char separator [@property getter]
char separator [@property setter]

The trailing separator (e.g. '/') or '\0'.

Static functions

fromTrustedEncodedString
Segment2 fromTrustedEncodedString(string encoded_name, char separator)

Constructs a path segment without performing validation.

fromTrustedString
Segment2 fromTrustedString(string name, char separator)

Constructs a path segment without performing validation.

Meta