C# 클래스 SILUBS.ScriptureChecks.RepeatedWordsCheck

Check to detect repeated words
상속: IScrCheckInventory
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
Check ( IEnumerable toks, RecordErrorHandler record ) : void

Find all repeated words. Ignore any found in 'validItemsList'. Call RecordError delegate whenever any other repeated key is found.

GetReferences ( IEnumerable tokens, string desiredKey ) : List

Gets a list if TextTokenSubstrings conataining the references and character offsets where repeated words occur.

RepeatedWordsCheck ( IChecksDataSource checksDataSource ) : System

Initializes a new instance of the RepeatedWordsCheck class.

Save ( ) : void

Update the parameter values for storing the valid and invalid lists in CheckDataSource and then save them. This is here because the inventory form does not know the names of the parameters that need to be saved for a given check, only the check knows this.

비공개 메소드들

메소드 설명
Localize ( string strToLocalize ) : string

Returns a localized version of the specified string.

메소드 상세

Check() 공개 메소드

Find all repeated words. Ignore any found in 'validItemsList'. Call RecordError delegate whenever any other repeated key is found.
public Check ( IEnumerable toks, RecordErrorHandler record ) : void
toks IEnumerable ITextToken's corresponding to the text to be checked. /// Typically this is one books worth.
record RecordErrorHandler Call this delegate to report each error found.
리턴 void

GetReferences() 공개 메소드

Gets a list if TextTokenSubstrings conataining the references and character offsets where repeated words occur.
public GetReferences ( IEnumerable tokens, string desiredKey ) : List
tokens IEnumerable The tokens (from the data source) to check for repeated words. ///
desiredKey string
리턴 List

RepeatedWordsCheck() 공개 메소드

Initializes a new instance of the RepeatedWordsCheck class.
public RepeatedWordsCheck ( IChecksDataSource checksDataSource ) : System
checksDataSource IChecksDataSource
리턴 System

Save() 공개 메소드

Update the parameter values for storing the valid and invalid lists in CheckDataSource and then save them. This is here because the inventory form does not know the names of the parameters that need to be saved for a given check, only the check knows this.
public Save ( ) : void
리턴 void