mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
helpers: fix formatting of trim functions
Origin commit data
------------------
Commit: 9e1818062c
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-03-28 (Thu, 28 Mar 2019)
Origin message was:
------------------
- helpers: fix formatting of trim functions
This commit is contained in:
@@ -613,16 +613,16 @@ std::string trim(std::string &str, const std::string &trimChars /*= " \n\r\t"*/)
|
||||
return result.erase(0, result.find_first_not_of(trimChars));
|
||||
}
|
||||
|
||||
std::string ltrim(std::string& str, const std::string& trimChars)
|
||||
std::string ltrim(std::string &str, const std::string &trimChars)
|
||||
{
|
||||
str.erase(0, str.find_first_not_of(trimChars));
|
||||
return str;
|
||||
}
|
||||
|
||||
std::string rtrim(std::string& str, const std::string& trimChars)
|
||||
std::string rtrim(std::string &str, const std::string &trimChars)
|
||||
{
|
||||
str.erase(str.find_last_not_of(trimChars) + 1);
|
||||
return str;
|
||||
str.erase(str.find_last_not_of(trimChars) + 1);
|
||||
return str;
|
||||
}
|
||||
|
||||
std::string cutString(const std::string str, int msgFont, const int width)
|
||||
|
Reference in New Issue
Block a user