C# Class BcsResolver.Common.StringReader

Represents a parser reader that is based on string variable.
Inheritance: IReader
显示文件 Open project: sybila/BCSParser

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Peek ( ) : char

Returns the char at the cursor, or Char.Zero, if we are on the end of file.

Read ( ) : char

Returns the char at the cursor and advances to the next char, or returns Char.Zero, if we are on the end of file.

StringReader ( string text ) : BcsResolver.Tokenizer

Initializes a new instance of the StringReader class.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Peek() public method

Returns the char at the cursor, or Char.Zero, if we are on the end of file.
public Peek ( ) : char
return char

Read() public method

Returns the char at the cursor and advances to the next char, or returns Char.Zero, if we are on the end of file.
public Read ( ) : char
return char

StringReader() public method

Initializes a new instance of the StringReader class.
public StringReader ( string text ) : BcsResolver.Tokenizer
text string
return BcsResolver.Tokenizer