C++ Utilities  5.10.5
Useful C++ classes and routines such as argument parser, IO and conversion utilities
Namespaces | Macros | Functions
path.h File Reference
#include "../global.h"
#include <list>
#include <string>
Include dependency graph for path.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 CppUtilities
 Contains all utilities provides by the c++utilities library.
 

Macros

#define PATH_SEP_CHAR   '/'
 
#define SEARCH_PATH_SEP_CHAR   ':'
 
#define PATH_SEP_STR   "/"
 
#define SEARCH_PATH_SEP_STR   ":"
 

Functions

CPP_UTILITIES_EXPORT std::string CppUtilities::fileName (const string &path)
 Returns the file name and extension of the specified path string. More...
 
CPP_UTILITIES_EXPORT std::string CppUtilities::directory (const string &path)
 Returns the directory of the specified path string (including trailing slash). More...
 
CPP_UTILITIES_EXPORT void CppUtilities::removeInvalidChars (std::string &fileName)
 Removes invalid characters from the specified fileName. More...
 

Macro Definition Documentation

◆ PATH_SEP_CHAR

#define PATH_SEP_CHAR   '/'

Definition at line 15 of file path.h.

◆ PATH_SEP_STR

#define PATH_SEP_STR   "/"

Definition at line 17 of file path.h.

◆ SEARCH_PATH_SEP_CHAR

#define SEARCH_PATH_SEP_CHAR   ':'

Definition at line 16 of file path.h.

◆ SEARCH_PATH_SEP_STR

#define SEARCH_PATH_SEP_STR   ":"

Definition at line 18 of file path.h.