mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-13 18:00:44 +02:00
Whole-tree reformat
This follows discussions from #3413. Followup commits add clang-format file, script and blame ignore lists.
This commit is contained in:
1 parent
028c220041
commit
2b4ec88dae
447 files changed
+78590
-73070
No files matched your search
@@ -2,19 +2,15 @@
|
||||
#include "Common/StringUtil.h"
|
||||
|
||||
namespace FEX::StringUtil {
|
||||
void ltrim(fextl::string &s) {
|
||||
s.erase(std::find_if(s.begin(), s.end(), [](int ch) {
|
||||
return !std::isspace(ch);
|
||||
}));
|
||||
void ltrim(fextl::string& s) {
|
||||
s.erase(std::find_if(s.begin(), s.end(), [](int ch) { return !std::isspace(ch); }));
|
||||
}
|
||||
|
||||
void rtrim(fextl::string &s) {
|
||||
s.erase(std::find_if(s.rbegin(), s.rend(), [](int ch) {
|
||||
return !std::isspace(ch);
|
||||
}).base(), s.end());
|
||||
void rtrim(fextl::string& s) {
|
||||
s.erase(std::find_if(s.rbegin(), s.rend(), [](int ch) { return !std::isspace(ch); }).base(), s.end());
|
||||
}
|
||||
void trim(fextl::string &s) {
|
||||
void trim(fextl::string& s) {
|
||||
ltrim(s);
|
||||
rtrim(s);
|
||||
}
|
||||
}
|
||||
} // namespace FEX::StringUtil
|
||||
Reference in new issue
Block a user