ccuty  1.0
 All Classes Namespaces Files Functions Enumerations Macros Pages
Namespaces | Constant Groups | Functions
ccpath.hpp File Reference

Functions for managing Unix pathnames. More...

Go to the source code of this file.

Namespaces

 ccuty
 C++ Utilities.
 

Constant Groups

 ccuty
 C++ Utilities.
 

Functions

std::string ccuty::basename (const std::string &path, bool with_extension=true)
 Returns filename component of path. More...
 
std::string ccuty::dirname (const std::string &path)
 Returns directory component of path.
 
std::string ccuty::dirslashed (const std::string &path)
 Adds a final / to a path if not already the case.
 
std::string ccuty::extname (const std::string &path, bool with_dot=true)
 Returns extension of path. More...
 
std::string ccuty::change_extname (const std::string &path, const std::string &ext)
 Changes the extension of the pathname (ext must start with a dot or be empty).
 
std::string ccuty::join_paths (const std::string &left, const std::string &right)
 Creates a new path from 2 paths.
 

Detailed Description

Functions for managing Unix pathnames.

Author
Eric Lecolinet 2017 - https://www.telecom-paristech.fr/~elc