Subversion Repositories tpanel

Rev

Rev 97 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 97 Rev 104
Line 76... Line 76...
76
bool endsWith (const std::string &src, const std::string &end);
76
bool endsWith (const std::string &src, const std::string &end);
77
bool startsWith (const std::string &src, const std::string &start);
77
bool startsWith (const std::string &src, const std::string &start);
78
std::string dirName (const std::string &path);
78
std::string dirName (const std::string &path);
79
std::string baseName (const std::string &path);
79
std::string baseName (const std::string &path);
80
char *strnstr(const char *haystack, const char *needle, size_t len);
80
char *strnstr(const char *haystack, const char *needle, size_t len);
-
 
81
std::string getCommand(const std::string& fullCmd);
81
 
82
 
82
static inline std::string &ltrim(std::string &s)
83
static inline std::string &ltrim(std::string &s)
83
{
84
{
84
    s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](int c) {return !std::isspace(c);}));
85
    s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](int c) {return !std::isspace(c);}));
85
    return s;
86
    return s;