| 31 | } |
| 32 | |
| 33 | void rtrim_inplace(std::wstring &s) { |
| 34 | s.erase(std::find_if(s.rbegin(), s.rend(), [](wchar_t ch) { |
| 35 | return iswspace(ch) == FALSE; |
| 36 | }).base(), s.end()); |
| 37 | } |
| 38 | |
| 39 | void trim_inplace(std::wstring &s) { |
| 40 | ltrim_inplace(s); |
no test coverage detected