We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16a8251 commit b87f98bCopy full SHA for b87f98b
1 file changed
include/jsoncons/utility/unicode_traits.hpp
@@ -1154,12 +1154,7 @@ namespace unicode_traits {
1154
{
1155
if ((end - it) >= 8)
1156
1157
- uint64_t chunk;
1158
- std::memcpy(&chunk, it, 8);
1159
- if ((chunk & mask) == 0) {
1160
- it += 8;
1161
- continue;
1162
- }
+ while (true) JSONCONS_REPEAT8({if (JSONCONS_LIKELY((trailing_bytes_for_utf8[*it] == 0) && (*it >= 0x80 && *it < 0xC2))) ++it; else break;})
1163
}
1164
const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
1165
if (len > (std::size_t)(end - it))
0 commit comments