12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include "config.h"
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#import <objc/objc-api.h>
#ifdef OF_APPLE_RUNTIME
# import <objc/runtime.h>
# define SEL_NAME(x) sel_getName(x)
#else
# define SEL_NAME(x) sel_get_name(x)
#endif
#import "OFExceptions.h"
#import "OFString.h"
#import "OFTCPSocket.h"
#ifndef _WIN32
|
<
<
>
|
>
>
>
|
|
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#include "config.h"
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef OF_APPLE_RUNTIME
# import <objc/runtime.h>
# import <objc/objc-api.h>
#endif
#ifdef OF_GNU_RUNTIME
# import <objc/objc-api.h>
# define sel_getName(x) sel_get_name(x)
#endif
#import "OFExceptions.h"
#import "OFString.h"
#import "OFTCPSocket.h"
#ifndef _WIN32
|
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
|
- (OFString*)string
{
if (string != nil)
return string;
string = [[OFString alloc] initWithFormat:
@"The method %s of class %s is not or not fully implemented!",
SEL_NAME(selector), [class_ className]];
return string;
}
@end
@implementation OFOutOfRangeException
- (OFString*)string
|
|
|
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
|
- (OFString*)string
{
if (string != nil)
return string;
string = [[OFString alloc] initWithFormat:
@"The method %s of class %s is not or not fully implemented!",
sel_getName(selector), [class_ className]];
return string;
}
@end
@implementation OFOutOfRangeException
- (OFString*)string
|
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
|
- (OFString*)string
{
if (string != nil)
return string;
string = [[OFString alloc] initWithFormat:
@"The argument for method %s of class %s is invalid!",
SEL_NAME(selector), [class_ className]];
return string;
}
@end
@implementation OFInvalidEncodingException
- (OFString*)string
|
|
|
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
|
- (OFString*)string
{
if (string != nil)
return string;
string = [[OFString alloc] initWithFormat:
@"The argument for method %s of class %s is invalid!",
sel_getName(selector), [class_ className]];
return string;
}
@end
@implementation OFInvalidEncodingException
- (OFString*)string
|