C# Класс ZForge.Controls.ExplorerBar.StringTokenizer

A class that breaks a string into tokens
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CountTokens ( ) : int

Returns the number of tokens in the string

HasMoreTokens ( ) : bool

Checks if there are more tokens available from this tokenizer's string

NextToken ( ) : string

Returns the current token and moves to the next token

PeekToken ( ) : string

Returns the current token but does not move to the next token

SkipToken ( ) : void

Moves to the next token without returning the current token

StringTokenizer ( string source ) : System

Initializes a new instance of the StringTokenizer class with the specified source string

StringTokenizer ( string source, char delimiter ) : System

Initializes a new instance of the StringTokenizer class with the specified source string and delimiters

StringTokenizer ( string source, string delimiter ) : System

Initializes a new instance of the StringTokenizer class with the specified source string and delimiters

Приватные методы

Метод Описание
Tokenize ( ) : void

Parses the source string

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

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

Returns the number of tokens in the string
public CountTokens ( ) : int
Результат int

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

Checks if there are more tokens available from this tokenizer's string
public HasMoreTokens ( ) : bool
Результат bool

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

Returns the current token and moves to the next token
public NextToken ( ) : string
Результат string

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

Returns the current token but does not move to the next token
public PeekToken ( ) : string
Результат string

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

Moves to the next token without returning the current token
public SkipToken ( ) : void
Результат void

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

Initializes a new instance of the StringTokenizer class with the specified source string
public StringTokenizer ( string source ) : System
source string The String to be parsed
Результат System

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

Initializes a new instance of the StringTokenizer class with the specified source string and delimiters
public StringTokenizer ( string source, char delimiter ) : System
source string The String to be parsed
delimiter char A char array containing the delimiters
Результат System

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

Initializes a new instance of the StringTokenizer class with the specified source string and delimiters
public StringTokenizer ( string source, string delimiter ) : System
source string The String to be parsed
delimiter string A String containing the delimiters
Результат System