C# Class Akka.Configuration.Hocon.Tokenizer

This class contains methods used to tokenize a string.
Exibir arquivo Open project: rogeralsing/akka.net

Public Methods

Method Description
Matches ( ) : bool

Determines whether any of the given patterns match the value at the current position of the tokenizer.

Matches ( string pattern ) : bool

Determines whether the given pattern matches the value at the current position of the tokenizer.

Peek ( ) : char

Retrieves the next character in the tokenizer without advancing its position.

Pop ( ) : void
PullWhitespace ( ) : void

Advances the tokenizer to the next non-whitespace character.

Push ( ) : void
Take ( ) : char

Retrieves the next character in the tokenizer.

Take ( int length ) : string

Retrieves a string of the given length from the current position of the tokenizer.

Tokenizer ( string text ) : System

Initializes a new instance of the Tokenizer class.

Method Details

Matches() public method

Determines whether any of the given patterns match the value at the current position of the tokenizer.
public Matches ( ) : bool
return bool

Matches() public method

Determines whether the given pattern matches the value at the current position of the tokenizer.
public Matches ( string pattern ) : bool
pattern string The string that contains the characters to match.
return bool

Peek() public method

Retrieves the next character in the tokenizer without advancing its position.
public Peek ( ) : char
return char

Pop() public method

public Pop ( ) : void
return void

PullWhitespace() public method

Advances the tokenizer to the next non-whitespace character.
public PullWhitespace ( ) : void
return void

Push() public method

public Push ( ) : void
return void

Take() public method

Retrieves the next character in the tokenizer.
public Take ( ) : char
return char

Take() public method

Retrieves a string of the given length from the current position of the tokenizer.
public Take ( int length ) : string
length int The length of the string to return.
return string

Tokenizer() public method

Initializes a new instance of the Tokenizer class.
public Tokenizer ( string text ) : System
text string The string that contains the text to tokenize.
return System