C# 클래스 SubtitlesParser.Classes.Parsers.SrtParser

Parser for the .srt subtitles files A .srt file looks like: 1 00:00:10,500 --> 00:00:13,000 Elephant's Dream 2 00:00:15,000 --> 00:00:18,000 At the left we can see...[12]
상속: ISubtitlesParser
파일 보기 프로젝트 열기: AlexPoint/SubtitlesParser 1 사용 예제들

공개 메소드들

메소드 설명
ParseStream ( Stream srtStream, Encoding encoding ) : List
SrtParser ( ) : System

비공개 메소드들

메소드 설명
GetSrtSubTitleParts ( TextReader reader ) : IEnumerable

Enumerates the subtitle parts in a srt file based on the standard line break observed between them. A srt subtitle part is in the form: 1 00:00:20,000 --> 00:00:24,400 Altocumulus clouds occur between six thousand

ParseSrtTimecode ( string s ) : int

Takes an SRT timecode as a string and parses it into a double (in seconds). A SRT timecode reads as follows: 00:00:20,000

TryParseTimecodeLine ( string line, int &startTc, int &endTc ) : bool

메소드 상세

ParseStream() 공개 메소드

public ParseStream ( Stream srtStream, Encoding encoding ) : List
srtStream Stream
encoding System.Text.Encoding
리턴 List

SrtParser() 공개 메소드

public SrtParser ( ) : System
리턴 System