33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
Class isa;
} placeholder;
@interface OFPlaceholderMutableString: OFMutableString
@end
@implementation OFPlaceholderMutableString
- (instancetype)init
{
return (id)[[OFMutableUTF8String alloc] init];
}
- (instancetype)initWithUTF8String: (const char *)UTF8String
{
|
>
>
>
>
>
>
|
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
Class isa;
} placeholder;
@interface OFPlaceholderMutableString: OFMutableString
@end
@implementation OFPlaceholderMutableString
#ifdef __clang__
/* We intentionally don't call into super, so silence the warning. */
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wunknown-pragmas"
# pragma clang diagnostic ignored "-Wobjc-designated-initializers"
#endif
- (instancetype)init
{
return (id)[[OFMutableUTF8String alloc] init];
}
- (instancetype)initWithUTF8String: (const char *)UTF8String
{
|
182
183
184
185
186
187
188
189
190
191
192
193
194
195
|
- (instancetype)initWithContentsOfIRI: (OFIRI *)IRI
encoding: (OFStringEncoding)encoding
{
return (id)[[OFMutableUTF8String alloc]
initWithContentsOfIRI: IRI
encoding: encoding];
}
OF_SINGLETON_METHODS
@end
@implementation OFMutableString
+ (void)initialize
{
|
>
>
>
|
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
- (instancetype)initWithContentsOfIRI: (OFIRI *)IRI
encoding: (OFStringEncoding)encoding
{
return (id)[[OFMutableUTF8String alloc]
initWithContentsOfIRI: IRI
encoding: encoding];
}
#ifdef __clang__
# pragma clang diagnostic pop
#endif
OF_SINGLETON_METHODS
@end
@implementation OFMutableString
+ (void)initialize
{
|