summaryrefslogtreecommitdiff
path: root/tools/utils.h
blob: 2c531b813eedfbc41da8c95dc93407f401cdc2a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
std::string basename(const std::string path);
int prefix(const std::string shorter, const std::string longer);
std::string time_out(const int _ttt);

std::string toLower(const std::string a);
std::string purify(const std::string arg);
std::string ltrim(const std::string foo,
        const std::string strip = " \t\r\n");

std::string rtrim(const std::string foo,
        const std::string strip = " \t\r\n");

std::string trim(const std::string foo,
        const std::string strip = " \t\r\n");