Skip to content

Commit f1b9420

Browse files
committed
add comment clarifying implementation
1 parent a3bd920 commit f1b9420

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/boost/json/basic_parser_impl.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,9 @@ parse_unescaped(const char* p,
10641064
}
10651065
return maybe_suspend(cs.begin(), state::str1, total);
10661066
}
1067+
// at this point all valid characters have been skipped, so any remaining
1068+
// if there are any more characters, they are either escaped, or incomplete
1069+
// utf8, or invalid utf8
10671070
if(BOOST_JSON_UNLIKELY(*cs != '\x22')) // '"'
10681071
{
10691072
// sequence is invalid or incomplete

0 commit comments

Comments
 (0)