mirror of
https://github.com/nlohmann/json.git
synced 2026-10-30 01:25:41 +00:00
json_view: use while in check_utf8_bytewise
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -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).
|
/// 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)
|
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];
|
const unsigned char c = p[i];
|
||||||
if (c < 0x80)
|
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).
|
/// 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)
|
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];
|
const unsigned char c = p[i];
|
||||||
if (c < 0x80)
|
if (c < 0x80)
|
||||||
|
|||||||
Reference in new issue
Block a user