C# 클래스 SILUBS.ScriptureChecks.UnitTestTokenizer

파일 보기 프로젝트 열기: sillsdev/FieldWorks

공개 메소드들

메소드 설명
Tokenize ( string text ) : List

Split text for book into TextTokens. Populate Tokens and chapters.

비공개 메소드들

메소드 설명
CategorizeTokens ( List tokens ) : void
DivideText ( string text ) : List

Divide text for book into TextTokens. Set Offset, Length, BookText, AnnotationOffset, Chapter, Verse Tricky things needing done: 1) Split \v N abc... into two tokens, first containing just verse number 2) \f X abc... don't return caller as part of the token

GetCVNumber ( string text, int offset ) : string

Return the text of a chapter or verse number starting at the specified offset.

IsParagraphStart ( string marker ) : bool

Determines whether the specified marker is a paragraph start marker.

NextToken ( string text, int ind ) : UnitTestUSFMTextToken

메소드 상세

Tokenize() 공개 메소드

Split text for book into TextTokens. Populate Tokens and chapters.
public Tokenize ( string text ) : List
text string
리턴 List