Overview
Comment: | OFNumber: Add -[stringValue] |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f5558d09197ccc7fdc0b79da389b4da9 |
User & Date: | js on 2019-12-14 18:48:50 |
Other Links: | manifest | tags |
Context
2019-12-14
| ||
19:00 | Allow numbers for of_dns_{class,record_type}_parse check-in: 4fc1f15ab2 user: js tags: trunk | |
18:48 | OFNumber: Add -[stringValue] check-in: f5558d0919 user: js tags: trunk | |
2019-12-13
| ||
00:00 | runtime: Add class_getInstanceMethod() check-in: 9e23a50de7 user: js tags: trunk | |
Changes
Modified src/OFNumber.h from [1367656c87] to [04b36e645f].
︙ | ︙ | |||
294 295 296 297 298 299 300 301 302 303 304 305 306 307 | @property (readonly, nonatomic) float floatValue; /*! * @brief The OFNumber as a `double`. */ @property (readonly, nonatomic) double doubleValue; #ifdef OF_HAVE_UNAVAILABLE + (instancetype)valueWithBytes: (const void *)bytes objCType: (const char *)objCType OF_UNAVAILABLE; + (instancetype)valueWithPointer: (const void *)pointer OF_UNAVAILABLE; + (instancetype)valueWithNonretainedObject: (id)object OF_UNAVAILABLE; + (instancetype)valueWithRange: (of_range_t)range OF_UNAVAILABLE; + (instancetype)valueWithPoint: (of_point_t)point OF_UNAVAILABLE; | > > > > > | 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | @property (readonly, nonatomic) float floatValue; /*! * @brief The OFNumber as a `double`. */ @property (readonly, nonatomic) double doubleValue; /*! * @brief The OFNumber as a string. */ @property (readonly, nonatomic) OFString *stringValue; #ifdef OF_HAVE_UNAVAILABLE + (instancetype)valueWithBytes: (const void *)bytes objCType: (const char *)objCType OF_UNAVAILABLE; + (instancetype)valueWithPointer: (const void *)pointer OF_UNAVAILABLE; + (instancetype)valueWithNonretainedObject: (id)object OF_UNAVAILABLE; + (instancetype)valueWithRange: (of_range_t)range OF_UNAVAILABLE; + (instancetype)valueWithPoint: (of_point_t)point OF_UNAVAILABLE; |
︙ | ︙ |
Modified src/OFNumber.m from [402455fc05] to [f90d5af790].
︙ | ︙ | |||
1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 | - (id)copy { return [self retain]; } - (OFString *)description { OFMutableString *ret; switch (_type) { case OF_NUMBER_TYPE_BOOL: return (_value.bool_ ? @"true" : @"false"); case OF_NUMBER_TYPE_UCHAR: | > > > > > | 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 | - (id)copy { return [self retain]; } - (OFString *)description { return [self stringValue]; } - (OFString *)stringValue { OFMutableString *ret; switch (_type) { case OF_NUMBER_TYPE_BOOL: return (_value.bool_ ? @"true" : @"false"); case OF_NUMBER_TYPE_UCHAR: |
︙ | ︙ |