pub unsafe extern "C-unwind" fn CFAttributedStringGetAttribute(
a_str: &CFAttributedString,
loc: CFIndex,
attr_name: Option<&CFString>,
effective_range: *mut CFRange,
) -> Option<CFRetained<CFType>>
Available on crate features
CFAttributedString
and CFBase
only.Expand description
Returns the value of a single attribute at the specified location. If the specified attribute doesn’t exist at the location, returns NULL. If effectiveRange is not NULL, upon return *effectiveRange contains a range over which the exact same attribute value applies. Note that for performance reasons, the returned effectiveRange is not necessarily the maximal range - for that, use CFAttributedStringGetAttributeAndLongestEffectiveRange(). It’s a programming error for loc to specify a location outside the bounds of the attributed string.