feat(Unicode): add Unicode 17.0.0 manifest and strict/repair/streaming UTF codecs (S-UNICODE-01, S-UNICODE-02)
This commit is contained in:
1 parent
bfd6246d32
commit
4369fde867
8 files changed
+1634
-1
No files matched your search
@@ -25,7 +25,7 @@ VoidLibrary currently has no `Unicode` module (`src/Unicode/`). `Text` handles l
|
||||
|
||||
## 4. Edge cases
|
||||
- Rejects overlong UTF-8 sequences, UTF-16 surrogates (`U+D800..U+DFFF`) in UTF-8/UTF-32, unpaired surrogates in UTF-16, code points `> U+10FFFF`, and truncated sequences under `UtfPolicy::reject`.
|
||||
- WHATWG-compliant maximal subpart (`replace_one_unit`) emits `U+FFFD` per ill-formed unit/maximal subpart and advances cleanly without skipping subsequent valid units.
|
||||
- One-unit repair (`replace_one_unit`) emits `U+FFFD` per ill-formed unit and advances cleanly by one code unit without skipping subsequent valid units; streaming chunk boundaries match one-shot behavior identically.
|
||||
- Pre-reserve limit checks against `UtfLimits` reject oversized inputs/outputs before large allocations; periodic `std::stop_token` checks abort long transcodes cleanly.
|
||||
- Streaming `Utf8StreamDecoder` / `Utf16StreamDecoder` split sequences across arbitrary 1-byte/1-unit boundaries and flush trailing incomplete sequences cleanly at EOF.
|
||||
|
||||
|
||||
Reference in new issue
Block a user