Skip to main content

prefer_widest_matched_text

Function prefer_widest_matched_text 

Source
pub fn prefer_widest_matched_text(
    prev: Option<String>,
    next: Option<String>,
) -> Option<String>
Expand description

Prefer the wider matched span by Unicode scalar count (#1981 / #2007).

Used for content_edits and plan/tx multi-op rollups so hosts see the worst-case over-wide span (not first-non-null).