How can I modify this SRT file parser?
问题 I found some good code for parsing .srt files on stackoverflow (Parsing SRT file with Objective C) shown below: NSScanner *scanner = [NSScanner scannerWithString:[theTextView string]]; while (![scanner isAtEnd]) { @autoreleasepool { NSString *indexString; (void) [scanner scanUpToCharactersFromSet:[NSCharacterSet newlineCharacterSet] intoString:&indexString]; NSString *startString; (void) [scanner scanUpToString:@" --> " intoString:&startString]; (void) [scanner scanString:@"-->" intoString