|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
Strict UTF-8 validation (RFC 3629), one shared copy. More...
#include "protocore_config.h"Go to the source code of this file.
Classes | |
| struct | Utf8Args |
| The octet run a check walks. More... | |
| struct | Utf8Vars |
| struct | Utf8Ns |
| The entries. More... | |
Functions | |
| void | protocore_utf8_valid (uint8_t *work) |
Variables | |
| Utf8Vars | Utf8V |
| The operands and the outcome. | |
Strict UTF-8 validation (RFC 3629), one shared copy.
Several protocols must reject non-UTF-8 input: WebSocket TEXT frames (RFC 6455 8.1, fail with close 1007) and MQTT strings (MQTT 1.5.3). Both use this single validator rather than each rolling its own. Header-only inline, like the other shared primitives - zero link cost when unused.
Definition in file utf8.h.
| void protocore_utf8_valid | ( | uint8_t * | work | ) |
|
extern |
The operands and the outcome.