C# 클래스 SILUBS.ScriptureChecks.CapitalizationCheck

Check for capitalization: styles that should begin with a capital letter and words after sentence-final punctuation.
상속: IScriptureCheck
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
CapitalizationCheck ( IChecksDataSource _checksDataSource ) : System

Initializes a new instance of the CapitalizationCheck class.

Check ( IEnumerable toks, RecordErrorHandler record ) : void

Checks the specified Scripture tokens for capitalization within styles.

GetReferences ( IEnumerable tokens ) : List

Gets the references where capitalization errors occurred.

비공개 메소드들

메소드 설명
AddListToDictionary ( List list, StyleCapInfo capType ) : void

Adds the list of styles to dictionary.

CreateCapitalStyleDictionary ( ) : void

Creates the dictionary of styles information that will be used in this check.

GetErrorMessage ( IChecksDataSource dataSource, StyleCapInfo capReasonType, string styleName ) : string

Gets the error message given the style's reason for capitalization.

Localize ( string strToLocalize ) : string

Returns a localized version of the specified string.

메소드 상세

CapitalizationCheck() 공개 메소드

Initializes a new instance of the CapitalizationCheck class.
public CapitalizationCheck ( IChecksDataSource _checksDataSource ) : System
_checksDataSource IChecksDataSource The data source for the check.
리턴 System

Check() 공개 메소드

Checks the specified Scripture tokens for capitalization within styles.
public Check ( IEnumerable toks, RecordErrorHandler record ) : void
toks IEnumerable The tokens from scripture.
record RecordErrorHandler The record.
리턴 void

GetReferences() 공개 메소드

Gets the references where capitalization errors occurred.
public GetReferences ( IEnumerable tokens ) : List
tokens IEnumerable The Scripture tokens.
리턴 List