Path.directoryNameSpan

scoped constof(path) char[] directoryNameSpan(const char[] path)

Returns a view of the directory portion of path.

Returns

A span into path. The result does not include a trailing separator except when the directory portion is the root.

Parameters

const char[]
path

Generated with campc 0.12.0-preview.1.