C# 클래스 ZForge.Controls.ExplorerBar.StringTokenizer

A class that breaks a string into tokens
파일 보기 프로젝트 열기: zhuangyy/Motion 1 사용 예제들

공개 메소드들

메소드 설명
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