Differences From Artifact [8719bc5cf6]:
- File
src/OFString.h
— part of check-in
[301ee63212]
at
2011-11-20 18:41:25
on branch trunk
— Make OFString a class cluster.
It is a class cluster now, but there is still much to improve. (user: js, size: 24126) [annotate] [blame] [check-ins using]
To Artifact [63071797b5]:
- File src/OFString.h — part of check-in [243a96fc2d] at 2011-12-10 13:17:52 on branch trunk — Add JSON encoding. (user: js, size: 24153) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #include <stdio.h> #include <stdarg.h> #include <inttypes.h> #import "OFObject.h" #import "OFSerialization.h" #import "macros.h" @class OFConstantString; typedef uint32_t of_unichar_t; | > | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #include <stdio.h> #include <stdarg.h> #include <inttypes.h> #import "OFObject.h" #import "OFSerialization.h" #import "OFJSON.h" #import "macros.h" @class OFConstantString; typedef uint32_t of_unichar_t; |
︙ | ︙ | |||
69 70 71 72 73 74 75 | * <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, | | | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | * <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. * |
︙ | ︙ |