Gromacs  2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
gmx::anonymous_namespace{path.cpp} Namespace Reference

Functions

std::string_view getParentPathView (const std::string &input)
 Returns a view of the parent path (ie. directory components) of input ie. up to but excluding the last directory separator (if one exists). More...
 
std::string_view getFilenameView (const std::string_view input)
 Returns a view of the filename in input ie. after the last directory separator (if one exists). More...
 
std::string_view getStemView (const std::string &input)
 Returns a view of the stem of the filename in input. More...
 
std::string_view getExtensionView (const std::string_view input)
 Returns a view of the file extension of input, including the dot. More...
 

Function Documentation

std::string_view gmx::anonymous_namespace{path.cpp}::getExtensionView ( const std::string_view  input)

Returns a view of the file extension of input, including the dot.

The search for the extension separator takes place only within the filename component, ie. omitting any leading directories.

Returns
The view of the file extension, or empty if none exists.
std::string_view gmx::anonymous_namespace{path.cpp}::getFilenameView ( const std::string_view  input)

Returns a view of the filename in input ie. after the last directory separator (if one exists).

Returns
A view of the filename component.
std::string_view gmx::anonymous_namespace{path.cpp}::getParentPathView ( const std::string &  input)

Returns a view of the parent path (ie. directory components) of input ie. up to but excluding the last directory separator (if one exists).

Returns
A view of the parent-path components, or empty if no directory separator exists.
std::string_view gmx::anonymous_namespace{path.cpp}::getStemView ( const std::string &  input)

Returns a view of the stem of the filename in input.

The search for the extension separator takes place only within the filename component, ie. omitting any leading directories.

Returns
The view of the filename stem, or empty if none exists.