27#ifndef __COREFOUNDATION_CFATTRIBUTEDSTIRNG_H__
28#define __COREFOUNDATION_CFATTRIBUTEDSTIRNG_H__ 1
30#include <CoreFoundation/CFBase.h>
31#include <CoreFoundation/CFDictionary.h>
35typedef const struct __CFAttributedString *CFAttributedStringRef;
37typedef struct __CFAttributedString *CFMutableAttributedStringRef;
45CF_EXPORT CFAttributedStringRef
47 CFDictionaryRef attribs);
49CF_EXPORT CFAttributedStringRef
50CFAttributedStringCreateCopy (
CFAllocatorRef alloc, CFAttributedStringRef str);
52CF_EXPORT CFAttributedStringRef
54 CFAttributedStringRef str,
57CF_EXPORT
CFIndex CFAttributedStringGetLength (CFAttributedStringRef str);
59CF_EXPORT CFStringRef CFAttributedStringGetString (CFAttributedStringRef str);
66CFAttributedStringGetAttribute (CFAttributedStringRef str,
CFIndex loc,
67 CFStringRef attrName,
CFRange * effRange);
69CF_EXPORT CFDictionaryRef
70CFAttributedStringGetAttributes (CFAttributedStringRef str,
CFIndex loc,
74CFAttributedStringGetAttributeAndLongestEffectiveRange (CFAttributedStringRef
81CF_EXPORT CFDictionaryRef
82CFAttributedStringGetAttributesAndLongestEffectiveRange (CFAttributedStringRef
92CF_EXPORT CFTypeID CFAttributedStringGetTypeID (
void);
102CF_EXPORT CFMutableAttributedStringRef
105CF_EXPORT CFMutableAttributedStringRef
107 CFAttributedStringRef str);
114CFAttributedStringBeginEditing (CFMutableAttributedStringRef str);
116CF_EXPORT
void CFAttributedStringEndEditing (CFMutableAttributedStringRef str);
118CF_EXPORT CFMutableStringRef
119CFAttributedStringGetMutableString (CFMutableAttributedStringRef str);
122CFAttributedStringRemoveAttribute (CFMutableAttributedStringRef str,
123 CFRange range, CFStringRef attrName);
126CFAttributedStringReplaceString (CFMutableAttributedStringRef str,
127 CFRange range, CFStringRef repl);
130CFAttributedStringReplaceAttributedString (CFMutableAttributedStringRef str,
132 CFAttributedStringRef repl);
135CFAttributedStringSetAttribute (CFMutableAttributedStringRef str,
136 CFRange range, CFStringRef attrName,
140CFAttributedStringSetAttributes (CFMutableAttributedStringRef str,
141 CFRange range, CFDictionaryRef repl,
142 Boolean clearOtherAttribs);
signed long CFIndex
Definition CFBase.h:165
const struct __CFAllocator * CFAllocatorRef
A reference to a CFAllocator object.
Definition CFBase.h:301