use std::tolower

This commit is contained in:
Aaron Gyes
2019-09-22 15:46:39 -07:00
parent a19d9b2e73
commit a3db4128bc
5 changed files with 6 additions and 16 deletions

View File

@@ -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);
}