Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
path.cpp File Reference
#include "gmxpre.h"
#include "path.h"
#include "config.h"
#include <cctype>
#include <cerrno>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <utility>
#include <sys/stat.h>
#include "gromacs/utility/dir_separator.h"
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/futil.h"
#include "gromacs/utility/stringutil.h"
+ Include dependency graph for path.cpp:

Description

Implements functions in path.h.

Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com

Functions

bool anonymous_namespace{path.cpp}::isDirSeparator (char chr)
 Check whether a given character is a directory separator.
 
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). More...
 
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). More...
 
compat::string_view gmx::anonymous_namespace{path.cpp}::getStemView (const std::string &input)
 Returns a view of the stem of the filename in input. More...
 
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. More...
 

Variables

const char anonymous_namespace{path.cpp}::cDirSeparator = '/'
 Directory separator to use when joining paths.
 
const char anonymous_namespace{path.cpp}::cDirSeparators [] = "/\\"
 Directory separators to use when parsing paths.
 
const char anonymous_namespace{path.cpp}::cPathSeparator = ':'
 Separator to use to split the PATH environment variable. More...