C# Class Kooboo.Commerce.Rules.Conditions.Parsing.SourceReader

Mostrar archivo Open project: Kooboo/Ecommerce Class Usage Examples

Public Methods

Method Description
BeginLookahead ( ) : Lookahead

After the call to BeginLookahead, future reads will be cancelled if the lookahead is not accepted before it's disposed.

MoveNext ( ) : void
Peek ( ) : char
Read ( string expected ) : bool

Try reading the expected string. If the expected string is sucessfully read, return true and move the cursor. Otherwise return false and move back the cursor.

Read ( ) : char
SkipWhile ( Predicate predicate ) : void
SourceReader ( string source ) : System

Method Details

BeginLookahead() public method

After the call to BeginLookahead, future reads will be cancelled if the lookahead is not accepted before it's disposed.
public BeginLookahead ( ) : Lookahead
return Lookahead

MoveNext() public method

public MoveNext ( ) : void
return void

Peek() public method

public Peek ( ) : char
return char

Read() public method

Try reading the expected string. If the expected string is sucessfully read, return true and move the cursor. Otherwise return false and move back the cursor.
public Read ( string expected ) : bool
expected string
return bool

Read() public method

public Read ( ) : char
return char

SkipWhile() public method

public SkipWhile ( Predicate predicate ) : void
predicate Predicate
return void

SourceReader() public method

public SourceReader ( string source ) : System
source string
return System