midday-commander
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Utility Class Reference

A set of utility functions. More...

#include <Utility.h>

Static Public Member Functions

static std::string escape (const std::string &str)
 Escapes a string so it can be printed.
 
static std::shared_ptr< EntrymakeEntry (const std::filesystem::path &path)
 Makes the correct entry object based on it's path.
 
static std::string getHash (const std::filesystem::path &path)
 Generates an MD5 hash of a file.
 

Detailed Description

A set of utility functions.

Member Function Documentation

◆ escape()

std::string Utility::escape ( const std::string &  str)
static

Escapes a string so it can be printed.

Here is the caller graph for this function:

◆ getHash()

std::string Utility::getHash ( const std::filesystem::path &  path)
static

Generates an MD5 hash of a file.

Here is the caller graph for this function:

◆ makeEntry()

std::shared_ptr< Entry > Utility::makeEntry ( const std::filesystem::path &  path)
static

Makes the correct entry object based on it's path.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: