Merge remote-tracking branch 'origin/json-view/03-string-scan' into HEAD

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann committed 2026-10-04 17:19:58 +02:00
commit 471b35c5e8
118 files changed
+10345 -3274

No files matched your search

+6 -1
View File
@@ -987,10 +987,15 @@ class lexer : public lexer_base<BasicJsonType>
case '\n':
case '\r':
case char_traits<char_type>::eof():
return true;
#if !JSON_STRICT_NUL_HANDLING
case '\0':
#endif
// a NUL byte is the end of the input (see scan()),
// so leave it for scan() to see
unget();
return true;
#endif
default:
break;