zig/lib/std/json
Ryan Liptak a155e35850
std.json: Fix decoding of UTF-16 surrogate pairs (#16830)
* std.unicode: Add more UTF-16 decoding functions

This mostly makes parts of Utf16LeIterator reusable

* std.json: Fix decoding of UTF-16 surrogate pairs

Before this commit, there were 524,288 codepoints that would get decoded improperly. After this commit, there are 0.

Fixes #16828
2023-08-15 09:11:59 -04:00
..
dynamic.zig std.json: WriteStream.print instead of writePreformatted 2023-07-27 10:23:58 -07:00
dynamic_test.zig std.json: Unify stringify and writeStream (#16405) 2023-07-21 19:56:46 -04:00
hashmap.zig std.json: fix key allocation in HashMap for streaming json parsing (#16422) 2023-07-22 22:33:50 +00:00
hashmap_test.zig std.json: fix key allocation in HashMap for streaming json parsing (#16422) 2023-07-22 22:33:50 +00:00
JSONTestSuite_test.zig std: Rewrite low-level json api to support streaming (#15602) 2023-05-13 14:31:53 -04:00
scanner.zig std.json: Fix decoding of UTF-16 surrogate pairs (#16830) 2023-08-15 09:11:59 -04:00
scanner_test.zig std.json: Fix decoding of UTF-16 surrogate pairs (#16830) 2023-08-15 09:11:59 -04:00
static.zig std.json: add generic hash map that parses/stringifies with arbitrary string keys (#16366) 2023-07-09 22:18:59 -04:00
static_test.zig std.json: support parsing json at comptime using FixedBufferAllocator (#16488) 2023-07-22 18:52:26 -04:00
stringify.zig std.json: stringify enum literals (#16742) 2023-08-08 23:26:46 +00:00
stringify_test.zig std.json: stringify enum literals (#16742) 2023-08-08 23:26:46 +00:00
test.zig std.json: Unify stringify and writeStream (#16405) 2023-07-21 19:56:46 -04:00