22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#endif
#include <stdarg.h>
#include <inttypes.h>
#import "OFObject.h"
#import "OFSerialization.h"
#import "OFJSONEncoding.h"
#import "macros.h"
@class OFConstantString;
typedef uint32_t of_unichar_t;
|
|
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#endif
#include <stdarg.h>
#include <inttypes.h>
#import "OFObject.h"
#import "OFSerialization.h"
#import "OFJSONRepresentation.h"
#import "macros.h"
@class OFConstantString;
typedef uint32_t of_unichar_t;
|
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
* <b>Warning:</b> If you add methods to OFString using a category, you are not
* allowed to access the ivars directly, as these might be still uninitialized
* for a constant string and get initialized on the first message! Therefore,
* you should use the corresponding methods to get the ivars, which ensures the
* constant string is initialized.
*/
@interface OFString: OFObject <OFCopying, OFMutableCopying, OFComparing,
OFSerialization, OFJSON>
#ifdef OF_HAVE_PROPERTIES
@property (readonly) size_t length;
#endif
/**
* \brief Creates a new OFString.
*
|
|
|
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
* <b>Warning:</b> If you add methods to OFString using a category, you are not
* allowed to access the ivars directly, as these might be still uninitialized
* for a constant string and get initialized on the first message! Therefore,
* you should use the corresponding methods to get the ivars, which ensures the
* constant string is initialized.
*/
@interface OFString: OFObject <OFCopying, OFMutableCopying, OFComparing,
OFSerialization, OFJSONRepresentation>
#ifdef OF_HAVE_PROPERTIES
@property (readonly) size_t length;
#endif
/**
* \brief Creates a new OFString.
*
|