Skip to main content

split_keyval_source

Function split_keyval_source 

Source
pub fn split_keyval_source(kv: &str) -> Vec<(String, String)>
Expand description

Split a keyval dict’s TeX-source form ("k=v, k2={v, 2}") into (key, value) pairs: comma/equals splitting at brace depth 0 only, one level of outer braces stripped from values, whitespace trimmed, empty keys dropped (keyval semantics).