Skip to main content

find_icu_close

Function find_icu_close 

Source
pub fn find_icu_close(rest: &str) -> Option<usize>
Expand description

Quote+depth-aware scan from just after a placeholder’s opening { (rest), used only once emission-side detection (split_template) has already decided this is an ICU-dispatch placeholder (a , precedes the naive first }). Depth starts at 1 for the still-open outer brace; returns the byte offset of the true closing } (depth reaching 0), None if it never closes.