Skip to main content

split_string_comprehension

Function split_string_comprehension 

Source
pub fn split_string_comprehension(s: &str) -> Vec<&str>
Expand description

The SRD-18f string-comprehension separator rule, in one place so the parse-time (source_parser) and runtime (eval) striping can never drift: split on runs of comma / semicolon / ASCII whitespace, trim, drop empties. Every other character (: . - / …) stays in the token. Returns the raw token substrings; callers type them (Value or LiteralValue).