ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
utf8.h File Reference

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 (const uint8_t *work)

Variables

Utf8Vars Utf8V
 The operands and the outcome.

Detailed Description

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.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file utf8.h.

Function Documentation

◆ protocore_utf8_valid()

void protocore_utf8_valid ( const uint8_t * work)

References protocore_utf8_valid().

Referenced by protocore_utf8_valid().

Variable Documentation

◆ Utf8V

Utf8Vars Utf8V
extern

The operands and the outcome.