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
The extension part of the file 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'.
Returns the file base name, excluding the extension.
Constructs a path segment without performing validation.
Constructs a path segment without performing validation.
A single path segment.