encoding/utf8/types.ha
raw| 1 | // SPDX-License-Identifier: MPL-2.0 |
| 2 | // (c) Hare authors <https://harelang.org> |
| 3 | |
| 4 | // Returned when more data is needed, i.e. when an incomplete UTF-8 sequence is |
| 5 | // encountered. |
| 6 | export type more = void; |
| 7 | |
| 8 | // Returned when an invalid UTF-8 sequence was found. |
| 9 | export type invalid = !void; |
| 10 | |
| 11 | // Returns a human-friendly string for [[invalid]]. |
| 12 | export fn strerror(err: invalid) str = "Invalid UTF-8"; |