mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-17 10:51:11 -03:00
Revert "use std::tolower"
This reverts commit a3db4128bc.
This broke the build.
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#include "common.h"
|
||||
#include "wcstringutil.h"
|
||||
|
||||
#include <wctype.h>
|
||||
|
||||
typedef wcstring::size_type size_type;
|
||||
|
||||
wcstring_range wcstring_tok(wcstring &str, const wcstring &needle, wcstring_range last) {
|
||||
@@ -62,3 +64,9 @@ wcstring trim(wcstring input, const wchar_t *any_of) {
|
||||
result.erase(0, prefix);
|
||||
return result;
|
||||
}
|
||||
|
||||
wcstring wcstolower(wcstring input) {
|
||||
wcstring result = std::move(input);
|
||||
std::transform(result.begin(), result.end(), result.begin(), towlower);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user