Load the leaf element of a path.
Synopses
Declared in <bdls_pathutil.h>
Load the leaf element of a path.
static
int
getLeaf(
bsl::string* leaf,
std::string_view const& path,
int rootEnd = ‐1);
Load the leaf element of a path.
static
int
getLeaf(
std::pmr::string* leaf,
std::string_view const& path,
int rootEnd = ‐1);
Load the leaf element of a path.
static
int
getLeaf(
std::string* leaf,
std::string_view const& path,
int rootEnd = ‐1);
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
leaf |
receives the leaf element of |
path |
filesystem path to examine |
rootEnd |
if non‐negative, position in |
Created with MrDocs