tvl-depot/users/sterni/nix/utf8
sterni 750ef6c693 feat(sterni/nix/utf8): check if codepoint valid/encodeable
* Enforce the U+0000 to U+10FFFF range in `count` and throw an error if
  the given codepoint exceeds the range (encoding U+0000 won't work of
  course, but this is Nix's fault…).

* Check if the produced bytes are well formed and output an error if
  not. This indicates that the codepoint can't be encoded as UTF-8, like
  U+D800 which is reserved for UTF-16.

Change-Id: I18336e527484580f28cbfe784d51718ee15c5477
2021-11-25 12:15:35 +01:00
..
tests feat(sterni/nix/utf8): check if codepoint valid/encodeable 2021-11-25 12:15:35 +01:00
default.nix feat(sterni/nix/utf8): check if codepoint valid/encodeable 2021-11-25 12:15:35 +01:00