17#import "OFCharacterSet.h"
19OF_ASSUME_NONNULL_BEGIN
21@class OFArray OF_GENERIC(ObjectType);
24@class OFPair OF_GENERIC(FirstType, SecondType);
38 OFString *_Nullable _percentEncodedHost;
40 OFString *_Nullable _percentEncodedUser;
41 OFString *_Nullable _percentEncodedPassword;
43 OFString *_Nullable _percentEncodedQuery;
44 OFString *_Nullable _percentEncodedFragment;
45 OF_RESERVE_IVARS(
OFIRI, 4)
51@property (readonly, copy, nonatomic)
OFString *scheme;
56@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *host;
61@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
67@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFNumber *port;
72@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *user;
77@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
83@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *password;
88@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
94@property (readonly, copy, nonatomic)
OFString *path;
99@property (readonly, copy, nonatomic)
OFString *percentEncodedPath;
106@property (readonly, copy, nonatomic)
114@property (readonly, copy, nonatomic)
OFString *lastPathComponent;
119@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *query;
124@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
140@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
146@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *fragment;
151@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
157@property (readonly, nonatomic)
OFString *
string;
162@property (readonly, nonatomic)
OFIRI *IRIByStandardizingPath;
167@property (readonly, nonatomic)
168 OFIRI *IRIByAddingPercentEncodingForUnicodeCharacters;
177@property OF_NULLABLE_PROPERTY (readonly, nonatomic)
189+ (instancetype)IRIWithString: (
OFString *)string;
201+ (instancetype)IRIWithString: (
OFString *)string relativeToIRI: (
OFIRI *)IRI;
214+ (instancetype)fileIRIWithPath: (
OFString *)path;
224+ (instancetype)fileIRIWithPath: (
OFString *)path
225 isDirectory: (
bool)isDirectory;
236- (instancetype)initWithString: (
OFString *)string;
248- (instancetype)initWithString: (
OFString *)string relativeToIRI: (
OFIRI *)IRI;
262- (instancetype)initFileIRIWithPath: (
OFString *)path;
273- (instancetype)initFileIRIWithPath: (
OFString *)path
274 isDirectory: (
bool)isDirectory;
277- (instancetype)init OF_UNAVAILABLE;
290- (
OFIRI *)IRIByAppendingPathComponent: (
OFString *)component;
303 isDirectory: (
bool)isDirectory;
306@interface OFCharacterSet (IRICharacterSets)
307#ifdef OF_HAVE_CLASS_PROPERTIES
308@property (
class, readonly, nonatomic)
310@property (
class, readonly, nonatomic)
312@property (
class, readonly, nonatomic)
314@property (
class, readonly, nonatomic)
316@property (
class, readonly, nonatomic)
318@property (
class, readonly, nonatomic)
320@property (
class, readonly, nonatomic)
322@property (
class, readonly, nonatomic)
387extern bool OFIRIIsIPv6Host(
OFString *host);
395#import "OFMutableIRI.h"
An abstract class for storing objects in an array.
Definition OFArray.h:105
A class cluster representing a character set.
Definition OFCharacterSet.h:29
An abstract class for storing objects in a dictionary.
Definition OFDictionary.h:80
A class for representing IRIs, URIs, URLs and URNs, for parsing them as well as accessing parts of th...
Definition OFIRI.h:37
Provides a way to store a number in an object.
Definition OFNumber.h:43
The root class for all other classes inside ObjFW.
Definition OFObject.h:688
A class for storing a pair of two objects.
Definition OFPair.h:36
A class for handling strings.
Definition OFString.h:135
A protocol for the creation of copies.
Definition OFObject.h:1346
A protocol for the creation of mutable copies.
Definition OFObject.h:1367