Apache Mesos
Functions
path Namespace Reference

Functions

std::string from_uri (const std::string &uri)
 
Try< std::string > normalize (const std::string &path, const char _separator=os::PATH_SEPARATOR)
 
std::string join (const std::string &path1, const std::string &path2, const char _separator=os::PATH_SEPARATOR)
 
template<typename... Paths>
std::string join (const std::string &path1, const std::string &path2, Paths &&...paths)
 
std::string join (const std::vector< std::string > &paths, const char separator=os::PATH_SEPARATOR)
 
bool is_absolute (const std::string &path)
 Returns whether the given path is an absolute path. More...
 
STOUT_DEPRECATED bool absolute (const std::string &path)
 
Try< std::string > relative (const std::string &path_, const std::string &base_, char path_separator=os::PATH_SEPARATOR)
 

Function Documentation

STOUT_DEPRECATED bool path::absolute ( const std::string &  path)
inline
std::string path::from_uri ( const std::string &  uri)
inline
bool path::is_absolute ( const std::string &  path)
inline

Returns whether the given path is an absolute path.

If an invalid path is given, the return result is also invalid.

std::string path::join ( const std::string &  path1,
const std::string &  path2,
const char  _separator = os::PATH_SEPARATOR 
)
inline
template<typename... Paths>
std::string path::join ( const std::string &  path1,
const std::string &  path2,
Paths &&...  paths 
)
inline
std::string path::join ( const std::vector< std::string > &  paths,
const char  separator = os::PATH_SEPARATOR 
)
inline
Try<std::string> path::normalize ( const std::string &  path,
const char  _separator = os::PATH_SEPARATOR 
)
inline
Try<std::string> path::relative ( const std::string &  path_,
const std::string &  base_,
char  path_separator = os::PATH_SEPARATOR 
)
inline