C# Class SimpleFramework.Xml.Stream.HyphenBuilder.Parser

This is used to parse the style for this builder. This takes all of the words split from the original string and builds all of the processed tokens for the styles elements and attributes.
Inheritance: Splitter
Mostrar archivo Open project: ngallagher/simplexml

Public Methods

Method Description
Commit ( char text, int off, int len ) : void

This is used to commit the provided text in to the style that is required. Committing the text to the buffer assembles the tokens resulting in a complete token.

Parse ( char text, int off, int len ) : void

This is used to parse the provided text in to the style that is required. Manipulation of the text before committing it ensures that the text adheres to the required style.

Parser ( String source ) : System

Constructor for the Parser object. This will take the original string and parse it such that all of the words are emitted and used to build the styled token.

Method Details

Commit() public method

This is used to commit the provided text in to the style that is required. Committing the text to the buffer assembles the tokens resulting in a complete token.
public Commit ( char text, int off, int len ) : void
text char /// this is the text buffer to acquire the token from ///
off int /// this is the offset in the buffer token starts at ///
len int /// this is the length of the token to be committed ///
return void

Parse() public method

This is used to parse the provided text in to the style that is required. Manipulation of the text before committing it ensures that the text adheres to the required style.
public Parse ( char text, int off, int len ) : void
text char /// this is the text buffer to acquire the token from ///
off int /// this is the offset in the buffer token starts at ///
len int /// this is the length of the token to be parsed ///
return void

Parser() public method

Constructor for the Parser object. This will take the original string and parse it such that all of the words are emitted and used to build the styled token.
public Parser ( String source ) : System
source String /// this is the original string to be parsed ///
return System