Documentation
¶
Overview ¶
Package parse implements the lexical helpers the TOON decoder needs: unescaping quoted tokens, scanning for unquoted characters, and splitting delimiter-separated cell sequences.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexUnquoted ¶
IndexUnquoted reports the byte index of the first occurrence of target that lies outside a quoted region, or -1.
func IsQuotedToken ¶
IsQuotedToken reports whether token starts with a double quote, which obliges it to be a complete quoted token.
func SplitDelimited ¶
SplitDelimited splits a cell sequence on delimiter, honouring quoted regions, preserving empty tokens, and trimming the surrounding U+0020 of each token. A sequence that trims to nothing yields zero cells.
func UnquoteString ¶
UnquoteString removes the surrounding quotes from token and resolves its escape sequences.
func ValidateQuotedToken ¶
ValidateQuotedToken checks that a quoted token's closing quote is its last character.
Types ¶
This section is empty.