Gromacs
2020.4
|
#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"
Implements functions in path.h.
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... | |