Differences From Artifact [3f0f67466d]:
- File src/bridge/NSString+OFObject.h — part of check-in [0509d7a844] at 2019-01-03 19:13:03 on branch trunk — Update copyright (user: js, size: 1217) [annotate] [blame] [check-ins using]
To Artifact [9a240ce10e]:
- File
src/bridge/NSString+OFObject.h
— part of check-in
[f8fb6172af]
at
2019-06-16 01:40:35
on branch trunk
— bridge: Improve static types
This greatly improves Swift interoperability. (user: js, size: 1287) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | */ #import <Foundation/NSString.h> #import "NSBridging.h" OF_ASSUME_NONNULL_BEGIN #ifdef __cplusplus extern "C" { #endif extern int _NSString_OFObject_reference; #ifdef __cplusplus } #endif /*! * @category NSString (OFObject) * NSString+OFObject.h ObjFW-Bridge/NSString+OFObject.h * * @brief Support for bridging NSStrings to OFStrings. * * Unfortunately, they need to be copied, as NSString is not capable of * handling UCS-4 properly (a character of NSString is only 2 bytes, while a * character of OFString is 4). */ @interface NSString (OFObject) <NSBridging> @end OF_ASSUME_NONNULL_END | > > > | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | */ #import <Foundation/NSString.h> #import "NSBridging.h" OF_ASSUME_NONNULL_BEGIN @class OFString; #ifdef __cplusplus extern "C" { #endif extern int _NSString_OFObject_reference; #ifdef __cplusplus } #endif /*! * @category NSString (OFObject) * NSString+OFObject.h ObjFW-Bridge/NSString+OFObject.h * * @brief Support for bridging NSStrings to OFStrings. * * Unfortunately, they need to be copied, as NSString is not capable of * handling UCS-4 properly (a character of NSString is only 2 bytes, while a * character of OFString is 4). */ @interface NSString (OFObject) <NSBridging> @property (readonly, nonatomic) OFString *OFObject; @end OF_ASSUME_NONNULL_END |