C# Class BaconBuilder.Model.Parser

Parent class used for parsers of text to html and vice versa.
ファイルを表示 Open project: Revelations/BaconApp Class Usage Examples

Public Methods

Method Description
Parse ( string input ) : string

Replaces each matching regex key in the dictionary with its associated value for a given string.

Parser ( ) : System.Collections.Generic

Constructor for a parser object. Initialises the find / replace dictionary.

Protected Methods

Method Description
InitialiseDictionary ( ) : void

Does nothing in the parent class. Overridden in child classes to populate the dictionary with a ruleset appropriate to the type of parsing.

Method Details

InitialiseDictionary() protected method

Does nothing in the parent class. Overridden in child classes to populate the dictionary with a ruleset appropriate to the type of parsing.
protected InitialiseDictionary ( ) : void
return void

Parse() public method

Replaces each matching regex key in the dictionary with its associated value for a given string.
public Parse ( string input ) : string
input string String to perform substitutions on.
return string

Parser() public method

Constructor for a parser object. Initialises the find / replace dictionary.
public Parser ( ) : System.Collections.Generic
return System.Collections.Generic