~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty

« back to all changes in this revision

Viewing changes to Headers/Foundation/NSAttributedString.h

Tags: upstream-1.20.0
ImportĀ upstreamĀ versionĀ 1.20.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
- (id) initWithString: (NSString*)aString attributes: (NSDictionary*)attributes;
72
72
 
73
73
//Retrieving character information
74
 
- (unsigned int) length;
 
74
- (NSUInteger) length;
 
75
/** Returns the string content of the receiver.<br />
 
76
 * NB. this is actually a proxy to the internal content (which may change)
 
77
 * so if you need an immutable instance yu should copy the returned value,
 
78
 * not jhust retain it.
 
79
 */
75
80
- (NSString*) string;                                   //Primitive method!
76
81
 
77
82
//Retrieving attribute information
78
 
- (NSDictionary*) attributesAtIndex: (unsigned int)index
 
83
- (NSDictionary*) attributesAtIndex: (NSUInteger)index
79
84
                     effectiveRange: (NSRange*)aRange;  //Primitive method!
80
 
- (NSDictionary*) attributesAtIndex: (unsigned int)index
 
85
- (NSDictionary*) attributesAtIndex: (NSUInteger)index
81
86
              longestEffectiveRange: (NSRange*)aRange
82
87
                            inRange: (NSRange)rangeLimit;
83
88
- (id) attribute: (NSString*)attributeName
84
 
         atIndex: (unsigned int)index
 
89
         atIndex: (NSUInteger)index
85
90
  effectiveRange: (NSRange*)aRange;
86
 
- (id) attribute: (NSString*)attributeName atIndex: (unsigned int)index
 
91
- (id) attribute: (NSString*)attributeName atIndex: (NSUInteger)index
87
92
  longestEffectiveRange: (NSRange*)aRange inRange: (NSRange)rangeLimit;
88
93
 
89
94
//Comparing attributed strings
115
120
//Changing characters and attributes
116
121
- (void) appendAttributedString: (NSAttributedString*)attributedString;
117
122
- (void) insertAttributedString: (NSAttributedString*)attributedString
118
 
                        atIndex: (unsigned int)index;
 
123
                        atIndex: (NSUInteger)index;
119
124
- (void) replaceCharactersInRange: (NSRange)aRange
120
125
             withAttributedString: (NSAttributedString*)attributedString;
121
126
- (void) replaceCharactersInRange: (NSRange)aRange
128
133
 
129
134
@end //NSMutableAttributedString
130
135
 
131
 
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
132
 
@interface      NSAttributedString (GSCategories)
133
 
/**
134
 
 * Dep[recated synonym for attributedSubstringFromRange:
135
 
 * for consistency with NSString
136
 
 */
137
 
- (NSAttributedString*) attributedSubstringWithRange: (NSRange)aRange;
138
 
@end
139
 
#endif
140
 
 
141
136
#endif /* GS_API_MACOSX */
142
137
 
143
138
#if     defined(__cplusplus)
144
139
}
145
140
#endif
146
141
 
 
142
#if     !NO_GNUSTEP && !defined(GNUSTEP_BASE_INTERNAL)
 
143
#import <GNUstepBase/NSAttributedString+GNUstepBase.h>
 
144
#endif
 
145
 
147
146
#endif  /* __NSAttributedString_h_GNUSTEP_BASE_INCLUDE */
148
147