C# 클래스 SubLib.Core.Search.SearchOperator

Performs search operations.
파일 보기 프로젝트 열기: GNOME/gnome-subtitles 1 사용 예제들

공개 메소드들

메소드 설명
Find ( SubtitleSearchOptions options ) : SubtitleSearchResults

Searches for text using the specified search options.

FindNearTime ( float time ) : int

Finds the subtitle more near of specified time position.

FindWithTime ( float time ) : int

Finds the subtitle that contains the specified time position.

ReplaceAll ( Regex regex, string replacement ) : ArrayList

Replaces all occurences of some text with the specified replacement.

The newline (\n) char is used as the line break.

ReplaceAll ( Regex regex, string replacement, string lineBreak ) : ArrayList

Replaces all occurences of some text with the specified replacement.

SearchOperator ( Subtitles subtitles ) : SubLib.Core.Domain

비공개 메소드들

메소드 설명
FindBackward ( SubtitleSearchOptions options ) : SubtitleSearchResults

Searches backward for text using the specified search options.

FindForward ( SubtitleSearchOptions options ) : SubtitleSearchResults

Searches forward for text using the specified search options.

FindInSubtitle ( int subtitleNumber, string lineBreak, Regex regex, bool backwards ) : SubtitleSearchResults
FindInSubtitleFromIndex ( int subtitleNumber, string lineBreak, Regex regex, int startIndex, SubtitleTextType textType, bool backwards ) : SubtitleSearchResults
FindInSubtitleTillIndex ( int subtitleNumber, string lineBreak, Regex regex, int endIndex, SubtitleTextType textType, bool backwards ) : SubtitleSearchResults
FindInTextContent ( int subtitleNumber, string lineBreak, Regex regex, SubtitleTextType textType ) : SubtitleSearchResults
FindInTextContentFromIndex ( int subtitleNumber, string lineBreak, Regex regex, int startIndex, SubtitleTextType textType ) : SubtitleSearchResults
FindInTextContentTillIndex ( int subtitleNumber, string lineBreak, Regex regex, int endIndex, SubtitleTextType textType, bool backwards ) : SubtitleSearchResults
MatchValues ( Match match, int subtitleNumber, SubtitleTextType textType, int charsBeforeMatchInput ) : SubtitleSearchResults
ReplaceText ( string text, Regex regex, string replacement, MatchEvaluationCounter counter ) : string

메소드 상세

Find() 공개 메소드

Searches for text using the specified search options.
public Find ( SubtitleSearchOptions options ) : SubtitleSearchResults
options SubtitleSearchOptions The search options.
리턴 SubtitleSearchResults

FindNearTime() 공개 메소드

Finds the subtitle more near of specified time position.
public FindNearTime ( float time ) : int
time float The time position, in seconds.
리턴 int

FindWithTime() 공개 메소드

Finds the subtitle that contains the specified time position.
public FindWithTime ( float time ) : int
time float The time position, in seconds.
리턴 int

ReplaceAll() 공개 메소드

Replaces all occurences of some text with the specified replacement.
The newline (\n) char is used as the line break.
public ReplaceAll ( Regex regex, string replacement ) : ArrayList
regex System.Text.RegularExpressions.Regex A regular expression used to find the text to be replaced.
replacement string The text that will be used as a replacement.
리턴 System.Collections.ArrayList

ReplaceAll() 공개 메소드

Replaces all occurences of some text with the specified replacement.
public ReplaceAll ( Regex regex, string replacement, string lineBreak ) : ArrayList
regex System.Text.RegularExpressions.Regex A regular expression used to find the text to be replaced.
replacement string The text that will be used as a replacement.
lineBreak string The line break to use between multiple lines of text in each subtitle.
리턴 System.Collections.ArrayList

SearchOperator() 공개 메소드

public SearchOperator ( Subtitles subtitles ) : SubLib.Core.Domain
subtitles SubLib.Core.Domain.Subtitles
리턴 SubLib.Core.Domain