22#import "OFXMLAttribute.h"
24OF_ASSUME_NONNULL_BEGIN
26@class OFArray OF_GENERIC(ObjectType);
49 foundProcessingInstructionWithTarget: (
OFString *)target
66 namespace: (nullable
OFString *)nameSpace
80 namespace: (nullable
OFString *)nameSpace;
122 foundUnknownEntityNamed: (
OFString *)entity;
133OF_SUBCLASSING_RESTRICTED
136 id <OFXMLParserDelegate> _Nullable _delegate;
137 uint_least8_t _state;
139 const char *_Nullable _data;
141 OFString *_Nullable _name, *_Nullable _prefix;
146 OFString *_Nullable _attributeName, *_Nullable _attributePrefix;
152 bool _lastCarriageReturn, _finishedParsing;
160@property OF_NULLABLE_PROPERTY (assign, nonatomic)
161 id <OFXMLParserDelegate> delegate;
166@property (readonly, nonatomic)
size_t lineNumber;
171@property (readonly, nonatomic, getter=hasFinishedParsing)
bool finishedParsing;
180@property (nonatomic)
size_t depthLimit;
187+ (instancetype)parser;
199- (
void)parseBuffer: (const
char *)buffer length: (
size_t)length;
210- (
void)parseString: (
OFString *)
string;
221- (
void)parseStream: (
OFStream *)stream;
OFStringEncoding
The encoding of a string.
Definition OFString.h:65
An abstract class for storing objects in an array.
Definition OFArray.h:109
An abstract class for storing, adding and removing objects in an array.
Definition OFMutableArray.h:48
A class for storing and manipulating arbitrary data in an array.
Definition OFMutableData.h:30
An abstract class for storing and changing objects in a dictionary.
Definition OFMutableDictionary.h:48
The root class for all other classes inside ObjFW.
Definition OFObject.h:692
A base class for different types of streams.
Definition OFStream.h:192
A class for handling strings.
Definition OFString.h:139
A representation of an attribute of an XML element as an object.
Definition OFXMLAttribute.h:33
An event-based XML parser.
Definition OFXMLParser.h:135