From fab893278daa38fb537a329aeb7f308f85ddb210 Mon Sep 17 00:00:00 2001 From: michaelwright235 Date: Tue, 6 Jun 2023 13:35:40 +0300 Subject: [PATCH] sys: attributed_string: Uncomment CFAttributedStringGetMutableString because CFMutableStringRef has been implemented. --- core-foundation-sys/src/attributed_string.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core-foundation-sys/src/attributed_string.rs b/core-foundation-sys/src/attributed_string.rs index 780ff5d..36c0d69 100644 --- a/core-foundation-sys/src/attributed_string.rs +++ b/core-foundation-sys/src/attributed_string.rs @@ -11,6 +11,7 @@ use std::os::raw::c_void; use base::{CFAllocatorRef, CFTypeRef, CFIndex, CFRange, CFTypeID, Boolean}; use string::CFStringRef; use dictionary::CFDictionaryRef; +use string::CFMutableStringRef; #[repr(C)] pub struct __CFAttributedString(c_void); @@ -48,7 +49,7 @@ extern { /* Modifying a CFMutableAttributedString */ pub fn CFAttributedStringBeginEditing(aStr: CFMutableAttributedStringRef); pub fn CFAttributedStringEndEditing(aStr: CFMutableAttributedStringRef); - // pub fn CFAttributedStringGetMutableString(aStr: CFMutableAttributedStringRef) -> CFMutableStringRef; //todo + pub fn CFAttributedStringGetMutableString(aStr: CFMutableAttributedStringRef) -> CFMutableStringRef; pub fn CFAttributedStringRemoveAttribute(aStr: CFMutableAttributedStringRef, range: CFRange, attrName: CFStringRef); pub fn CFAttributedStringReplaceString(aStr: CFMutableAttributedStringRef, range: CFRange, replacement: CFStringRef); pub fn CFAttributedStringReplaceAttributedString(aStr: CFMutableAttributedStringRef, range: CFRange, replacement: CFAttributedStringRef);