C# Класс subtitleMemorize.SubtitleParserASS

Parse .ass/.ssa files
Наследование: ISubtitleParser
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetFormatRegex ( LinkedList rawLines ) : string

Find "Format: " line in "rawLines" and create a regex matching to infomation in this format.

SubtitleParserASS ( ) : System
parse ( Settings settings, LinkedList rawLines ) : List

The general idea is to create a regex based of the "Format: "-line in .ass file. Which then can be used to easily filter the required information (namely timestamps, text and actor).

parse ( Settings settings, Stream stream, Encoding encoding ) : List

Parse ASS files.

parseTime ( String timeString ) : double

Parse SSA timestamps like "0:19:30.25" to seconds

Описание методов

GetFormatRegex() публичный Метод

Find "Format: " line in "rawLines" and create a regex matching to infomation in this format.
public GetFormatRegex ( LinkedList rawLines ) : string
rawLines LinkedList Raw lines.
Результат string

SubtitleParserASS() публичный Метод

public SubtitleParserASS ( ) : System
Результат System

parse() публичный Метод

The general idea is to create a regex based of the "Format: "-line in .ass file. Which then can be used to easily filter the required information (namely timestamps, text and actor).
public parse ( Settings settings, LinkedList rawLines ) : List
settings Settings Settings.
rawLines LinkedList Raw lines.
Результат List

parse() публичный Метод

Parse ASS files.
public parse ( Settings settings, Stream stream, Encoding encoding ) : List
settings Settings Settings.
stream Stream Stream.
encoding System.Text.Encoding
Результат List

parseTime() публичный Метод

Parse SSA timestamps like "0:19:30.25" to seconds
public parseTime ( String timeString ) : double
timeString String
Результат double