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 v0.8.0-preview.1+4df4cd2858d46c717d136ff5c571742dc449f642.