parse

Parse a path into its constituent components.

Note that the provided path is sliced, not duplicated.

PathParser!(char_t)
parse
(
char_t
)
(
char_t[] path
)

Examples

auto p = parse ("/foo/bar/file.ext".dup);
assert (p.equals("/foo/bar/file.ext"));
assert (p.folder == "/foo/bar/");
assert (p.path == "/foo/bar/");
assert (p.file == "file.ext");
assert (p.name == "file");
assert (p.suffix == ".ext");
assert (p.ext == "ext");
assert (p.isChild == true);
assert (p.isEmpty == false);
assert (p.isAbsolute == true);

Meta