C# 클래스 mustache.FormatCompiler

Parses a format string and returns a text generator.
파일 보기 프로젝트 열기: Zocdoc/mustache-sharp

공개 메소드들

메소드 설명
Compile ( string format ) : Generator

Builds a text generator based on the given format.

FormatCompiler ( ) : System

Initializes a new instance of a FormatCompiler.

RegisterTag ( TagDefinition definition, bool isTopLevel ) : void

Registers the given tag definition with the parser.

비공개 메소드들

메소드 설명
buildCompoundGenerator ( TagDefinition tagDefinition, CompoundGenerator generator, Trimmer trimmer, string format, int formatIndex ) : int
findNextTag ( TagDefinition definition, string format, int formatIndex ) : Match
getArguments ( TagDefinition definition, Match match ) : ArgumentCollection
getClosingTagRegex ( string tagName ) : string
getCommentTagRegex ( ) : string
getKeyRegex ( ) : string
getTagRegex ( TagDefinition definition ) : string
getUnknownTagRegex ( ) : string
prepareRegex ( TagDefinition definition ) : Regex

메소드 상세

Compile() 공개 메소드

Builds a text generator based on the given format.
public Compile ( string format ) : Generator
format string The format to parse.
리턴 Generator

FormatCompiler() 공개 메소드

Initializes a new instance of a FormatCompiler.
public FormatCompiler ( ) : System
리턴 System

RegisterTag() 공개 메소드

Registers the given tag definition with the parser.
public RegisterTag ( TagDefinition definition, bool isTopLevel ) : void
definition TagDefinition The tag definition to register.
isTopLevel bool Specifies whether the tag is immediately in scope.
리턴 void