Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yaakovschectman committed Feb 28, 2023
1 parent abfe52a commit 67269ba
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include "ax/platform/ax_platform_node_textrangeprovider_win.h"

#include <UIAutomation.h>
#include <string_view>
#include <wrl/client.h>
#include <string_view>

#include "ax/ax_action_data.h"
#include "ax/ax_range.h"
Expand Down Expand Up @@ -442,8 +442,9 @@ static bool StringSearch(std::u16string& search_string,
bool backwards) {
if (ignore_case) {
auto const& ct = std::use_facet<std::ctype<char16_t>>(std::locale());
auto tolower = [&ct](char16_t c){ return ct.tolower(c); };
std::transform(search_string.begin(), search_string.end(), search_string.begin(), tolower);
auto tolower = [&ct](char16_t c) { return ct.tolower(c); };
std::transform(search_string.begin(), search_string.end(),
search_string.begin(), tolower);
std::transform(find_in.begin(), find_in.end(), find_in.begin(), tolower);
}
size_t match_pos;
Expand Down

0 comments on commit 67269ba

Please sign in to comment.