C++ Utilities 5.17.0
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 <string_view>
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

namespace  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 std::string &path)
 Returns the file name and extension of the specified path string. More...
 
CPP_UTILITIES_EXPORT std::string CppUtilities::directory (const std::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...
 
std::string_view CppUtilities::makeNativePath (std::string_view path)
 Returns path in the platform's native encoding. More...
 

Macro Definition Documentation

◆ PATH_SEP_CHAR

#define PATH_SEP_CHAR   '/'

Definition at line 20 of file path.h.

◆ PATH_SEP_STR

#define PATH_SEP_STR   "/"

Definition at line 22 of file path.h.

◆ SEARCH_PATH_SEP_CHAR

#define SEARCH_PATH_SEP_CHAR   ':'

Definition at line 21 of file path.h.

◆ SEARCH_PATH_SEP_STR

#define SEARCH_PATH_SEP_STR   ":"

Definition at line 23 of file path.h.