Line 107... |
Line 107... |
107 |
std::string dirName (const std::string &path);
|
107 |
std::string dirName (const std::string &path);
|
108 |
std::string baseName (const std::string &path);
|
108 |
std::string baseName (const std::string &path);
|
109 |
char *strnstr(const char *haystack, const char *needle, size_t len);
|
109 |
char *strnstr(const char *haystack, const char *needle, size_t len);
|
110 |
std::string getCommand(const std::string& fullCmd);
|
110 |
std::string getCommand(const std::string& fullCmd);
|
111 |
bool StrContains(const std::string& str, const std::string& part);
|
111 |
bool StrContains(const std::string& str, const std::string& part);
|
- |
|
112 |
bool isTrue(const std::string& value);
|
- |
|
113 |
bool isFalse(const std::string& value);
|
- |
|
114 |
bool isNumeric(const std::string& str, bool blank=false);
|
112 |
|
115 |
|
113 |
static inline std::string <rim(std::string &s)
|
116 |
static inline std::string <rim(std::string &s)
|
114 |
{
|
117 |
{
|
115 |
s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](int c) {return !std::isspace(c);}));
|
118 |
s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](int c) {return !std::isspace(c);}));
|
116 |
return s;
|
119 |
return s;
|