mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::json: Use unicode surrogate for null escape stringify.
This commit is contained in:
parent
14c652181d
commit
900f820a8c
1 changed files with 2 additions and 4 deletions
|
@ -3208,7 +3208,7 @@ decltype(ircd::json::ctrl_tab)
|
||||||
ircd::json::ctrl_tab
|
ircd::json::ctrl_tab
|
||||||
alignas(32)
|
alignas(32)
|
||||||
{
|
{
|
||||||
"\\0",
|
"\\u0000",
|
||||||
"\\u0001", "\\u0002", "\\u0003",
|
"\\u0001", "\\u0002", "\\u0003",
|
||||||
"\\u0004", "\\u0005", "\\u0006",
|
"\\u0004", "\\u0005", "\\u0006",
|
||||||
"\\u0007",
|
"\\u0007",
|
||||||
|
@ -3231,7 +3231,7 @@ decltype(ircd::json::ctrl_tab_len)
|
||||||
ircd::json::ctrl_tab_len
|
ircd::json::ctrl_tab_len
|
||||||
alignas(32)
|
alignas(32)
|
||||||
{
|
{
|
||||||
2,
|
6,
|
||||||
6, 6, 6,
|
6, 6, 6,
|
||||||
6, 6, 6,
|
6, 6, 6,
|
||||||
6,
|
6,
|
||||||
|
@ -3444,7 +3444,6 @@ ircd::json::string_stringify(u8x16 &__restrict__ block,
|
||||||
case 'n':
|
case 'n':
|
||||||
case 'f':
|
case 'f':
|
||||||
case 'r':
|
case 'r':
|
||||||
case '0':
|
|
||||||
block[0] = '\\';
|
block[0] = '\\';
|
||||||
block[1] = block[1];
|
block[1] = block[1];
|
||||||
return u64x2
|
return u64x2
|
||||||
|
@ -3654,7 +3653,6 @@ ircd::json::string_serialized(const u8x16 block,
|
||||||
case 'n':
|
case 'n':
|
||||||
case 'f':
|
case 'f':
|
||||||
case 'r':
|
case 'r':
|
||||||
case '0':
|
|
||||||
return u64x2
|
return u64x2
|
||||||
{
|
{
|
||||||
2, 2
|
2, 2
|
||||||
|
|
Loading…
Reference in a new issue