| 25 | void to_upper_inplace(std::wstring &s) { std::transform(s.begin(), s.end(), s.begin(), &towupper); } |
| 26 | |
| 27 | void ltrim_inplace(std::wstring &s) { |
| 28 | s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](wchar_t ch) { |
| 29 | return iswspace(ch) == FALSE; |
| 30 | })); |
| 31 | } |
| 32 | |
| 33 | void rtrim_inplace(std::wstring &s) { |
| 34 | s.erase(std::find_if(s.rbegin(), s.rend(), [](wchar_t ch) { |
no test coverage detected