22 #import "OFXMLAttribute.h" 24 OF_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;
133 OF_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)
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;
224 OF_ASSUME_NONNULL_END
An abstract class for storing objects in an array.
Definition: OFArray.h:107
A representation of an attribute of an XML element as an object.
Definition: OFXMLAttribute.h:32
OFStringEncoding
The encoding of a string.
Definition: OFString.h:65
The root class for all other classes inside ObjFW.
Definition: OFObject.h:690
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:47
A base class for different types of streams.
Definition: OFStream.h:278
A class for handling strings.
Definition: OFString.h:142
An abstract class for storing and changing objects in a dictionary.
Definition: OFMutableDictionary.h:46
A protocol that needs to be implemented by delegates for OFXMLParser.
Definition: OFXMLParser.h:31
An event-based XML parser.
Definition: OFXMLParser.h:134
A class for storing and manipulating arbitrary data in an array.
Definition: OFMutableData.h:29