Stop formatting nonsense

This commit is contained in:
FutureRave 2022-02-26 23:40:47 +00:00
parent cbfd650f78
commit f283a52540
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955
2 changed files with 6 additions and 6 deletions

View File

@ -104,7 +104,7 @@ namespace Utils
}
// trim from start
std::string &LTrim(std::string &s)
std::string& LTrim(std::string& s)
{
s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](int val)
{
@ -114,7 +114,7 @@ namespace Utils
}
// trim from end
std::string &RTrim(std::string &s)
std::string& RTrim(std::string& s)
{
s.erase(std::find_if(s.rbegin(), s.rend(), [](int val)
{
@ -124,7 +124,7 @@ namespace Utils
}
// trim from both ends
std::string &Trim(std::string &s)
std::string& Trim(std::string& s)
{
return LTrim(RTrim(s));
}

View File

@ -81,9 +81,9 @@ namespace Utils
std::vector<std::string> Split(const std::string& str, const char delim);
void Replace(std::string &string, const std::string& find, const std::string& replace);
bool StartsWith(const std::string& haystack, const std::string& needle);
std::string &LTrim(std::string &s);
std::string &RTrim(std::string &s);
std::string &Trim(std::string &s);
std::string& LTrim(std::string& s);
std::string& RTrim(std::string& s);
std::string& Trim(std::string& s);
std::string FormatTimeSpan(int milliseconds);
std::string FormatBandwidth(size_t bytes, int milliseconds);