Loading...
Searching...
No Matches
path.hh
Go to the documentation of this file.
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
#ifndef DUNE_COMMON_PATH_HH
#define DUNE_COMMON_PATH_HH
#include <string>
namespace Dune {
std::string concatPaths(const std::string& base, const std::string& p);
std::string processPath(const std::string& p);
bool pathIndicatesDirectory(const std::string& p);
std::string prettyPath(const std::string& p, bool isDirectory);
std::string prettyPath(const std::string& p);
std::string relativePath(const std::string& newbase, const std::string& p);
}
#endif // DUNE_COMMON_PATH_HH
Dune::processPath
std::string processPath(const std::string &p)
sanitize a path for further processing
Definition path.cc:37
Dune::pathIndicatesDirectory
bool pathIndicatesDirectory(const std::string &p)
check whether the given path indicates that it is a directory
Definition path.cc:111
Dune::prettyPath
std::string prettyPath(const std::string &p, bool isDirectory)
pretty print path
Definition path.cc:122
Dune::relativePath
std::string relativePath(const std::string &newbase, const std::string &p)
compute a relative path between two paths
Definition path.cc:149
Dune::concatPaths
std::string concatPaths(const std::string &base, const std::string &p)
concatenate two paths
Definition path.cc:28
Dune
Dune namespace
Definition alignedallocator.hh:13