Function CFAttributedStringReplaceString

Source
pub unsafe extern "C-unwind" fn CFAttributedStringReplaceString(
    a_str: Option<&CFMutableAttributedString>,
    range: CFRange,
    replacement: Option<&CFString>,
)
Available on crate features CFAttributedString and CFBase only.
Expand description

Modifies the string for the attributed string, much like CFStringReplace(). It’s an error for range to specify characters outside the bounds of aStr.

(Note: This function is a convenience on CFAttributedStringGetMutableString(); however, until CFAttributedStringGetMutableString() is implemented, it remains the only way to edit the string of the attributed string.)