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