Return the position in a path of the character following the root.
Synopsis
Declared in <bdls_pathutil.h>
static
int
getRootEnd(std::string_view const& path);
Description
Return the 0‐based position in the specified path of the character following the root. Note that a return value of 0 indicates a relative path. See []and Performance). See also for the definition of root.
Return Value
0‐based index of the character following the root
Parameters
Name |
Description |
path |
filesystem path to examine |
Created with MrDocs