mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-07-03 18:21:16 -03:00
use std::tolower
This commit is contained in:
@@ -633,7 +633,7 @@ class wildcard_matcher_t : public string_matcher_t {
|
||||
io_streams_t &streams)
|
||||
: string_matcher_t(opts, streams), wcpattern(parse_util_unescape_wildcards(pattern)) {
|
||||
if (opts.ignore_case) {
|
||||
wcpattern = wcstolower(std::move(wcpattern));
|
||||
wcpattern = std::tolower(std::move(wcpattern));
|
||||
}
|
||||
if (opts.entire) {
|
||||
if (!wcpattern.empty()) {
|
||||
@@ -654,7 +654,7 @@ class wildcard_matcher_t : public string_matcher_t {
|
||||
bool match;
|
||||
|
||||
if (opts.ignore_case) {
|
||||
match = wildcard_match(wcstolower(arg), wcpattern, false);
|
||||
match = wildcard_match(std::tolower(arg), wcpattern, false);
|
||||
} else {
|
||||
match = wildcard_match(arg, wcpattern, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user