Skip to main content

icu_dispatch_placeholders

Function icu_dispatch_placeholders 

Source
pub fn icu_dispatch_placeholders(template: &str) -> Vec<(usize, &str)>
Expand description

Every ICU-dispatch placeholder in template(byte offset of innerwithintemplate, inner text) — for the checker’s malformed-syntax pass (bynk-emit/src/project/validate.rs). A placeholder only reaches here if split_template already decided it was ICU-dispatch (its inner contains a top-level comma); a plain {name} never does, by construction (proven in split_template’s own doc comment).