sys: attributed_string: Uncomment CFAttributedStringGetMutableString
because CFMutableStringRef has been implemented.
This commit is contained in:
@@ -11,6 +11,7 @@ use std::os::raw::c_void;
|
|||||||
use base::{CFAllocatorRef, CFTypeRef, CFIndex, CFRange, CFTypeID, Boolean};
|
use base::{CFAllocatorRef, CFTypeRef, CFIndex, CFRange, CFTypeID, Boolean};
|
||||||
use string::CFStringRef;
|
use string::CFStringRef;
|
||||||
use dictionary::CFDictionaryRef;
|
use dictionary::CFDictionaryRef;
|
||||||
|
use string::CFMutableStringRef;
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct __CFAttributedString(c_void);
|
pub struct __CFAttributedString(c_void);
|
||||||
@@ -48,7 +49,7 @@ extern {
|
|||||||
/* Modifying a CFMutableAttributedString */
|
/* Modifying a CFMutableAttributedString */
|
||||||
pub fn CFAttributedStringBeginEditing(aStr: CFMutableAttributedStringRef);
|
pub fn CFAttributedStringBeginEditing(aStr: CFMutableAttributedStringRef);
|
||||||
pub fn CFAttributedStringEndEditing(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 CFAttributedStringRemoveAttribute(aStr: CFMutableAttributedStringRef, range: CFRange, attrName: CFStringRef);
|
||||||
pub fn CFAttributedStringReplaceString(aStr: CFMutableAttributedStringRef, range: CFRange, replacement: CFStringRef);
|
pub fn CFAttributedStringReplaceString(aStr: CFMutableAttributedStringRef, range: CFRange, replacement: CFStringRef);
|
||||||
pub fn CFAttributedStringReplaceAttributedString(aStr: CFMutableAttributedStringRef, range: CFRange, replacement: CFAttributedStringRef);
|
pub fn CFAttributedStringReplaceAttributedString(aStr: CFMutableAttributedStringRef, range: CFRange, replacement: CFAttributedStringRef);
|
||||||
|
|||||||
Reference in New Issue
Block a user