Add current location property to Input Stream reader

Can be used for better parse errors reporting
This commit is contained in:
iska
2014-10-24 01:07:07 +02:00
parent 9e198c9766
commit 7c4e39af07
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -16,6 +16,7 @@
@interface HTMLInputStreamReader : NSObject
@property (nonatomic, readonly) NSString *string;
@property (nonatomic, readonly) NSUInteger currentLocation;
@property (nonatomic, copy) HTMLStreamReaderErrorCallback errorCallback;
- (id)initWithString:(NSString *)string;
+1
View File
@@ -26,6 +26,7 @@
@implementation HTMLInputStreamReader
@synthesize string = _string;
@synthesize currentLocation = _location;
@synthesize errorCallback = _errorCallback;
#pragma mark - Lifecycle