fixup! Add overload of wcstringutil::trim that automatically trims whitespace

This commit is contained in:
Mahmoud Al-Qudsi 2018-10-01 17:22:40 -05:00
parent f702c42068
commit e04130e145

View file

@ -47,7 +47,7 @@ wcstring truncate(const wcstring &input, int max_len, ellipsis_type etype) {
}
wcstring trim(const wcstring &input) {
return trim(input, whitespace.c_str());
return trim(input, L"\t\v \r\n");
}
wcstring trim(const wcstring &input, const wchar_t *any_of) {