| 145 | } // namespace detail |
| 146 | |
| 147 | template <typename CharType> std::basic_string_view<CharType> trim(std::basic_string_view<CharType> sv) { |
| 148 | while (detail::is_space_helper(sv.front())) |
| 149 | sv.remove_prefix(1); |
| 150 | while (detail::is_space_helper(sv.back())) |
| 151 | sv.remove_suffix(1); |
| 152 | return sv; |
| 153 | } |
| 154 | |
| 155 | // trim from start (in place) |
| 156 | void ltrim_inplace(std::wstring &s); |
nothing calls this directly
no test coverage detected