mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
fixup! Add overload of wcstringutil::trim that automatically trims whitespace
This commit is contained in:
parent
f702c42068
commit
e04130e145
@ -47,7 +47,7 @@ wcstring truncate(const wcstring &input, int max_len, ellipsis_type etype) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
wcstring trim(const wcstring &input) {
|
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) {
|
wcstring trim(const wcstring &input, const wchar_t *any_of) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user