C# Класс Akka.Configuration.Hocon.Tokenizer

This class contains methods used to tokenize a string.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Matches() публичный Метод

Determines whether any of the given patterns match the value at the current position of the tokenizer.
public Matches ( ) : bool
Результат bool

Matches() публичный Метод

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.
Результат bool

Peek() публичный Метод

Retrieves the next character in the tokenizer without advancing its position.
public Peek ( ) : char
Результат char

Pop() публичный Метод

public Pop ( ) : void
Результат void

PullWhitespace() публичный Метод

Advances the tokenizer to the next non-whitespace character.
public PullWhitespace ( ) : void
Результат void

Push() публичный Метод

public Push ( ) : void
Результат void

Take() публичный Метод

Retrieves the next character in the tokenizer.
public Take ( ) : char
Результат char

Take() публичный Метод

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.
Результат string

Tokenizer() публичный Метод

Initializes a new instance of the Tokenizer class.
public Tokenizer ( string text ) : System
text string The string that contains the text to tokenize.
Результат System