Skip to main content

Module strings

Module strings 

Source
Expand description

The byte-level work of STRING, UNSTRING and INSPECT, apart from storage and operands.

Structs§

Phrase
One INSPECT phrase, resolved to bytes: pattern is empty for CHARACTERS.

Functions§

delimited
STRING’s view of a sending item: all of it for DELIMITED BY SIZE, or up to the delimiter.
inspect
Scans data left to right; at each position the first phrase that applies and matches takes the characters it matches. Returns how many times each phrase matched, replacing as it goes when phrases carry a BY value.
next_delimiter
Where the next UNSTRING field ends and which delimiter ended it: the earliest position at or after from where any delimiter matches, the first listed winning at a tie.
past_delimiter
The end of a delimiter at at, taking every repetition when it is DELIMITED BY ALL.
region
The region [start, end) of data that BEFORE and AFTER INITIAL leave: BEFORE ends it at the first occurrence of its value, AFTER starts it after the first occurrence of its value (or leaves nothing when the value does not occur).