21#import "OFCharacterSet.h"
23OF_ASSUME_NONNULL_BEGIN
25@class OFArray OF_GENERIC(ObjectType);
28@class OFPair OF_GENERIC(FirstType, SecondType);
42 OFString *_Nullable _percentEncodedHost;
44 OFString *_Nullable _percentEncodedUser;
45 OFString *_Nullable _percentEncodedPassword;
47 OFString *_Nullable _percentEncodedQuery;
48 OFString *_Nullable _percentEncodedFragment;
49 OF_RESERVE_IVARS(
OFIRI, 4)
55@property (readonly, copy, nonatomic)
OFString *scheme;
60@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *host;
65@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
71@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFNumber *port;
76@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *user;
81@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
87@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *password;
92@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
98@property (readonly, copy, nonatomic)
OFString *path;
103@property (readonly, copy, nonatomic)
OFString *percentEncodedPath;
110@property (readonly, copy, nonatomic)
118@property (readonly, copy, nonatomic)
OFString *lastPathComponent;
123@property (readonly, copy, nonatomic)
OFString *pathExtension;
128@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *query;
133@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
149@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
155@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFString *fragment;
160@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
166@property (readonly, nonatomic)
OFString *
string;
171@property (readonly, nonatomic)
OFIRI *IRIByStandardizingPath;
176@property (readonly, nonatomic)
OFIRI *IRIByDeletingLastPathComponent;
181@property (readonly, nonatomic)
OFIRI *IRIByDeletingPathExtension;
186@property (readonly, nonatomic)
187 OFIRI *IRIByAddingPercentEncodingForUnicodeCharacters;
196@property OF_NULLABLE_PROPERTY (readonly, nonatomic)
208+ (instancetype)IRIWithString: (
OFString *)string;
220+ (instancetype)IRIWithString: (
OFString *)string relativeToIRI: (
OFIRI *)IRI;
233+ (instancetype)fileIRIWithPath: (
OFString *)path;
243+ (instancetype)fileIRIWithPath: (
OFString *)path
244 isDirectory: (
bool)isDirectory;
255- (instancetype)initWithString: (
OFString *)string;
267- (instancetype)initWithString: (
OFString *)string relativeToIRI: (
OFIRI *)IRI;
281- (instancetype)initFileIRIWithPath: (
OFString *)path;
292- (instancetype)initFileIRIWithPath: (
OFString *)path
293 isDirectory: (
bool)isDirectory;
296- (instancetype)init OF_UNAVAILABLE;
309- (
OFIRI *)IRIByAppendingPathComponent: (
OFString *)component;
322 isDirectory: (
bool)isDirectory;
330- (
OFIRI *)IRIByAppendingPathExtension: (
OFString *)extension;
333@interface OFCharacterSet (IRICharacterSets)
334#ifdef OF_HAVE_CLASS_PROPERTIES
335@property (
class, readonly, nonatomic)
337@property (
class, readonly, nonatomic)
339@property (
class, readonly, nonatomic)
341@property (
class, readonly, nonatomic)
343@property (
class, readonly, nonatomic)
345@property (
class, readonly, nonatomic)
347@property (
class, readonly, nonatomic)
349@property (
class, readonly, nonatomic)
414extern bool _OFIRIIsIPv6Host(
OFString *host) OF_VISIBILITY_HIDDEN;
416 OF_VISIBILITY_HIDDEN;
423#import "OFMutableIRI.h"
An abstract class for storing objects in an array.
Definition OFArray.h:109
A class cluster representing a character set.
Definition OFCharacterSet.h:33
An abstract class for storing objects in a dictionary.
Definition OFDictionary.h:84
A class for representing IRIs, URIs, URLs and URNs, for parsing them as well as accessing parts of th...
Definition OFIRI.h:41
Provides a way to store a number in an object.
Definition OFNumber.h:47
The root class for all other classes inside ObjFW.
Definition OFObject.h:692
A class for storing a pair of two objects.
Definition OFPair.h:40
A class for handling strings.
Definition OFString.h:139
A protocol for the creation of copies.
Definition OFObject.h:1350
A protocol for the creation of mutable copies.
Definition OFObject.h:1371