|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
🔤 UTF-8 Encoding and Decoding Utilities More...
Go to the source code of this file.
Functions | |
| int | utf8_decode (const uint8_t *s, uint32_t *codepoint) |
| Decode a UTF-8 sequence to a Unicode codepoint. | |
🔤 UTF-8 Encoding and Decoding Utilities
This header provides simple, efficient UTF-8 validation and decoding without external dependencies. The implementation handles multi-byte UTF-8 sequences and validates encoding correctness.
UTF-8 encodes Unicode codepoints using 1-4 bytes:
The decoder validates UTF-8 sequences during decoding:
Definition in file utf8.h.