C# 클래스 SmartFormat.Core.Parsing.Parser

Parses a format string.
파일 보기 프로젝트 열기: scottrippey/SmartFormat.NET 1 사용 예제들

공개 메소드들

메소드 설명
AddAdditionalSelectorChars ( string chars ) : void

Adds specific characters to the allowed selector chars.

AddAlphanumericSelectors ( ) : void

Includes a-z and A-Z in the list of allowed selector chars.

AddOperators ( string chars ) : void

Adds specific characters to the allowed operator chars. An operator is a character that is in the selector string that splits the selectors.

ParseFormat ( string format, string formatterExtensionNames ) : Format
Parser ( ErrorAction errorAction = ErrorAction.Ignore ) : System
UseAlternativeBraces ( char opening, char closing ) : void
UseAlternativeEscapeChar ( char alternativeEscapeChar = '\\' ) : void

Sets the AlternativeEscaping option to True so that braces will only be escaped after the specified character.

UseBraceEscaping ( ) : void

[Default] Uses {{ and }} for escaping braces for compatibility with String.Format. However, this does not work very well with nested placeholders, so it is recommended to use an alternative escape char.

비공개 메소드들

메소드 설명
FormatterNameExists ( string name, string formatterExtensionNames ) : bool

메소드 상세

AddAdditionalSelectorChars() 공개 메소드

Adds specific characters to the allowed selector chars.
public AddAdditionalSelectorChars ( string chars ) : void
chars string
리턴 void

AddAlphanumericSelectors() 공개 메소드

Includes a-z and A-Z in the list of allowed selector chars.
public AddAlphanumericSelectors ( ) : void
리턴 void

AddOperators() 공개 메소드

Adds specific characters to the allowed operator chars. An operator is a character that is in the selector string that splits the selectors.
public AddOperators ( string chars ) : void
chars string
리턴 void

ParseFormat() 공개 메소드

public ParseFormat ( string format, string formatterExtensionNames ) : Format
format string
formatterExtensionNames string
리턴 Format

Parser() 공개 메소드

public Parser ( ErrorAction errorAction = ErrorAction.Ignore ) : System
errorAction ErrorAction
리턴 System

UseAlternativeBraces() 공개 메소드

public UseAlternativeBraces ( char opening, char closing ) : void
opening char
closing char
리턴 void

UseAlternativeEscapeChar() 공개 메소드

Sets the AlternativeEscaping option to True so that braces will only be escaped after the specified character.
public UseAlternativeEscapeChar ( char alternativeEscapeChar = '\\' ) : void
alternativeEscapeChar char Defaults to backslash
리턴 void

UseBraceEscaping() 공개 메소드

[Default] Uses {{ and }} for escaping braces for compatibility with String.Format. However, this does not work very well with nested placeholders, so it is recommended to use an alternative escape char.
public UseBraceEscaping ( ) : void
리턴 void