Path.fileNameSpan

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

Returns a view of the final path component in path.

Returns

A span into path. A path ending in a directory separator has an empty file-name span.

Parameters

const char[]
path

Generated with campc 0.12.0-preview.1.