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

Functions

compat::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...
 
compat::string_view getFilenameView (const compat::string_view input)
 Returns a view of the filename in input ie. after the last directory separator (if one exists). More...
 
compat::string_view getStemView (const std::string &input)
 Returns a view of the stem of the filename in input. More...
 
compat::string_view getExtensionView (const compat::string_view input)
 Returns a view of the file extension of input, including the dot. More...
 

Function Documentation

compat::string_view gmx::anonymous_namespace{path.cpp}::getExtensionView ( const compat::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.
compat::string_view gmx::anonymous_namespace{path.cpp}::getFilenameView ( const compat::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.
compat::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.
compat::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.