Quite incomplete and untested ssa parser.
This commit is contained in:
6 files changed
+685
-1
No files matched your search
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// MP42SSAParser.h
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 02/10/2017.
|
||||
// Copyright © 2017 Damiano Galassi. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MP42SSALine : NSObject
|
||||
|
||||
@property (nonatomic, readwrite) unsigned start;
|
||||
@property (nonatomic, readwrite) unsigned end;
|
||||
@property (nonatomic, readwrite) NSString *text;
|
||||
|
||||
@end
|
||||
|
||||
@interface MP42SSAParser : NSObject
|
||||
|
||||
- (instancetype)initWithString:(NSString *)string;
|
||||
- (instancetype)initWithHeader:(NSString *)header;
|
||||
|
||||
@property (nonatomic, readonly) NSArray<MP42SSALine *> *lines;
|
||||
|
||||
- (void)addLine:(NSString *)line;
|
||||
|
||||
@end
|
||||
|
||||
Reference in new issue
Block a user