|
C++ Utilities 5.31.1
Useful C++ classes and routines such as argument parser, IO and conversion utilities
|
Go to the source code of this file.
Namespaces | |
| namespace | CppUtilities |
| Contains all utilities provided by the c++utilities library. | |
Macros | |
| #define | PATH_SEP_CHAR '/' |
| #define | SEARCH_PATH_SEP_CHAR ':' |
| #define | PATH_SEP_STR "/" |
| #define | SEARCH_PATH_SEP_STR ":" |
Typedefs | |
| using | CppUtilities::PathValueType |
| The native type used by std::filesystem:path. | |
| using | CppUtilities::NativePathString = std::basic_string<PathValueType> |
| The string type used to store paths in the native encoding. | |
| using | CppUtilities::NativePathStringView = std::basic_string_view<PathValueType> |
| The string view type used to pass paths in the native encoding. | |
| using | CppUtilities::PathString = std::string |
| The string type used to store paths UTF-8 encoded. | |
| using | CppUtilities::PathStringView = std::string_view |
| The string view type used to pass paths UTF-8 encoded. | |
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). | |
| CPP_UTILITIES_EXPORT void | CppUtilities::removeInvalidChars (std::string &fileName) |
| Removes invalid characters from the specified fileName. | |
| NativePathStringView | CppUtilities::makeNativePath (PathStringView path) |
| Returns path in the platform's native encoding. | |
| PathStringView | CppUtilities::extractNativePath (NativePathStringView path) |
| Returns path as UTF-8 string or string view. | |