Skip to main content

Module line

Module line 

Source
Expand description

Logical line tokenization per RFC 5545.

After unfolding, each logical line has the shape

NAME[;PARAM=VALUE...]:VALUE

This module turns one such text line into a LogicalLine token: the property name (UPPERCASE-normalized), the list of parameters (keys UPPERCASE, surrounding " stripped from values, order preserved), and the raw text after the colon (escapes intact — TEXT escape handling lives in ADR-019 Step 2).

Dispatch sites in parser/mod.rs switch on LogicalLine.name instead of strip_prefix("NAME:"), which also makes them tolerant of properties that arrive with parameters (e.g. UID;X-FOO=bar:abc).

Structs§

LogicalLine
Tokenized property line.

Functions§

parse_logical_line
Parse one logical line into a LogicalLine. Returns None when the line is malformed (no colon, no name).