Differences From Artifact [6ad21dffff]:
- File src/OFURL.h — part of check-in [eba3667137] at 2017-10-29 15:05:07 on branch trunk — Add -[OFURL lastPathComponent] (user: js, size: 5566) [annotate] [blame] [check-ins using]
To Artifact [cb95b72aba]:
- File
src/OFURL.h
— part of check-in
[f3ccf14461]
at
2017-10-29 21:58:14
on branch trunk
— Convert methods to properties where appropriate
This improves Swift compatibility. (user: js, size: 5518) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
94 95 96 97 98 99 100 101 102 103 104 105 106 107 | @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *query; /*! * The fragment part of the URL. */ @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *fragment; /*! * @brief Creates a new URL with the specified string. * * @param string A string describing a URL * @return A new, autoreleased OFURL */ + (instancetype)URLWithString: (OFString *)string; | > > > > > > > > > > > > > > > | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *query; /*! * The fragment part of the URL. */ @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic) OFString *fragment; /*! * The URL as a string. */ @property (readonly, nonatomic) OFString *string; /*! * The local file system representation for a file URL. * * @note This only exists for URLs with the file scheme and throws an exception * otherwise. * */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *fileSystemRepresentation; /*! * @brief Creates a new URL with the specified string. * * @param string A string describing a URL * @return A new, autoreleased OFURL */ + (instancetype)URLWithString: (OFString *)string; |
︙ | ︙ | |||
183 184 185 186 187 188 189 | * @param isDirectory Whether the path is a directory, in which case a slash is * appened if there is no slash yet * @return An Initialized OFURL */ + (instancetype)fileURLWithPath: (OFString *)path isDirectory: (bool)isDirectory; #endif | < < < < < < < < < < < < < < < < < | 198 199 200 201 202 203 204 205 206 207 208 209 | * @param isDirectory Whether the path is a directory, in which case a slash is * appened if there is no slash yet * @return An Initialized OFURL */ + (instancetype)fileURLWithPath: (OFString *)path isDirectory: (bool)isDirectory; #endif @end OF_ASSUME_NONNULL_END #import "OFMutableURL.h" |