Skip to content

Commit 5fc9ab3

Browse files
committed
spacing
1 parent c3e2760 commit 5fc9ab3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/vsearch.cc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -348,16 +348,16 @@ std::FILE * fp_log = nullptr;
348348
// anonymous namespace: limit visibility and usage to this translation unit
349349
namespace {
350350

351-
// performance: lambda compiles to a single x86-64 instruction (shr al, 7),
352-
// equivalent to (c & ~0x7F) == 0
353-
auto is_not_ASCII(std::string const & user_string) -> bool {
354-
static constexpr auto ascii_max = static_cast<unsigned char>(std::numeric_limits<signed char>::max());
355-
auto is_not_in_range = [](char const user_char) -> bool {
356-
auto const unsigned_user_char = static_cast<unsigned char>(user_char);
357-
return (unsigned_user_char > ascii_max);
358-
};
359-
return std::any_of(user_string.begin(), user_string.end(), is_not_in_range);
360-
}
351+
// performance: lambda compiles to a single x86-64 instruction (shr al, 7),
352+
// equivalent to (c & ~0x7F) == 0
353+
auto is_not_ASCII(std::string const & user_string) -> bool {
354+
static constexpr auto ascii_max = static_cast<unsigned char>(std::numeric_limits<signed char>::max());
355+
auto is_not_in_range = [](char const user_char) -> bool {
356+
auto const unsigned_user_char = static_cast<unsigned char>(user_char);
357+
return (unsigned_user_char > ascii_max);
358+
};
359+
return std::any_of(user_string.begin(), user_string.end(), is_not_in_range);
360+
}
361361

362362
} // end of anonymous namespace
363363

0 commit comments

Comments
 (0)