15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
*/
#import "OFObject.h"
#import "OFSerialization.h"
OF_ASSUME_NONNULL_BEGIN
@class OFNumber;
@class OFString;
/*!
* @class OFURL OFURL.h ObjFW/OFURL.h
*
* @brief A class for parsing URLs and accessing parts of it.
|
>
|
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
*/
#import "OFObject.h"
#import "OFSerialization.h"
OF_ASSUME_NONNULL_BEGIN
@class OFArray OF_GENERIC(ObjectType);
@class OFNumber;
@class OFString;
/*!
* @class OFURL OFURL.h ObjFW/OFURL.h
*
* @brief A class for parsing URLs and accessing parts of it.
|
174
175
176
177
178
179
180
181
182
183
184
185
186
187
|
/*!
* @brief Returns the URL as a string.
*
* @return The URL as a string
*/
- (OFString *)string;
/*!
* @brief Returns the local file system representation for a file URL.
*
* This only exists for URLs with the file scheme and throws an exception
* otherwise.
*
* @return The local file system representation for a file URL
|
>
>
>
>
>
>
>
>
>
|
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
|
/*!
* @brief Returns the URL as a string.
*
* @return The URL as a string
*/
- (OFString *)string;
/*!
* @brief Returns the path of the URL split into components.
*
* The first component is always empty to designate the root.
*
* @return The path of the URL split into components
*/
- (nullable OFArray OF_GENERIC(OFString *) *)pathComponents;
/*!
* @brief Returns the local file system representation for a file URL.
*
* This only exists for URLs with the file scheme and throws an exception
* otherwise.
*
* @return The local file system representation for a file URL
|