Constructs a new path segment including an optional trailing separator.
Converts the segment to another path type.
Compares two path segment names
The encoded representation of the path segment name
Returns true iff the segment has a trailing path separator.
The (file/directory) name of the path segment.
The trailing separator (e.g. '/') or '\0'.
Constructs a path segment without performing validation.
Constructs a path segment without performing validation.
A single path segment.