C++ Utilities 5.24.7
Useful C++ classes and routines such as argument parser, IO and conversion utilities
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
path.cpp File Reference
#include "./path.h"
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <string>
Include dependency graph for path.cpp:

Go to the source code of this file.

Namespaces

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

Macros

#define CPP_UTILITIES_PATHHELPER_STRING_VIEW
 

Functions

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

Macro Definition Documentation

◆ CPP_UTILITIES_PATHHELPER_STRING_VIEW

#define CPP_UTILITIES_PATHHELPER_STRING_VIEW

Definition at line 1 of file path.cpp.