| 162 | } |
| 163 | |
| 164 | std::string StringUtilities::TrimRight(const std::string& input) { |
| 165 | size_t endpos = input.find_last_not_of(WHITESPACE); |
| 166 | return (endpos == std::string::npos) ? "" : input.substr(0, endpos + 1); |
| 167 | } |
| 168 | |
| 169 | std::wstring StringUtilities::Trim(const std::wstring& input) { |
| 170 | return TrimRight(TrimLeft(input)); |
nothing calls this directly
no outgoing calls
no test coverage detected