File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -348,16 +348,16 @@ std::FILE * fp_log = nullptr;
348348// anonymous namespace: limit visibility and usage to this translation unit
349349namespace {
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
You can’t perform that action at this time.
0 commit comments