mirror of
https://github.com/nlohmann/json.git
synced 2026-10-29 20:15:20 +00:00
json_view: use while in check_utf8_bytewise
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
@@ -49,7 +49,7 @@ struct first_true<false, Conditions...> : std::integral_constant < int, 1 + firs
|
||||
/// well-formed sequence can continue with (Unicode, Table 3-7).
|
||||
NLOHMANN_VIEW_ALWAYS_INLINE void check_utf8_bytewise(const unsigned char* p, std::size_t n, std::size_t i)
|
||||
{
|
||||
for (; i < n;)
|
||||
while (i < n)
|
||||
{
|
||||
const unsigned char c = p[i];
|
||||
if (c < 0x80)
|
||||
|
||||
Generated
+1
-1
@@ -3835,7 +3835,7 @@ struct first_true<false, Conditions...> : std::integral_constant < int, 1 + firs
|
||||
/// well-formed sequence can continue with (Unicode, Table 3-7).
|
||||
NLOHMANN_VIEW_ALWAYS_INLINE void check_utf8_bytewise(const unsigned char* p, std::size_t n, std::size_t i)
|
||||
{
|
||||
for (; i < n;)
|
||||
while (i < n)
|
||||
{
|
||||
const unsigned char c = p[i];
|
||||
if (c < 0x80)
|
||||
|
||||
Reference in New Issue
Block a user