C# 클래스 CNCGUI.TextParser

파일 보기 프로젝트 열기: x893/CNCGUI 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
NullChar char

공개 메소드들

메소드 설명
Extract ( int start ) : string

Extracts a substring from the specified position to the end of the text

Extract ( int start, int end ) : string

Extracts a substring from the specified range of the current text

MoveAhead ( ) : void

Moves the current position ahead one character

MoveAhead ( int ahead ) : void

Moves the current position ahead the specified number of characters

MovePast ( char chars ) : void

Moves to the next occurrence of any character that is not one of the specified characters

MovePastWhitespace ( ) : void

Moves the current position to the next character that is not whitespace

MoveTo ( char c ) : void

Moves to the next occurrence of the specified character

MoveTo ( string s, bool ignoreCase = false ) : void

Moves to the next occurrence of the specified string

MoveToEndOfLine ( ) : void

Moves the current position to the first character that is part of a newline

Peek ( ) : char

Returns the character at the current position, or a null character if we're at the end of the document

Peek ( int ahead ) : char

Returns the character at the specified number of characters beyond the current position, or a null character if the specified position is at the end of the document

Reset ( ) : void

Resets the current position to the start of the current document

Reset ( string text ) : void

Sets the current document and resets the current position to the start of it

TextParser ( ) : System
TextParser ( string text ) : System

보호된 메소드들

메소드 설명
IsInArray ( char c, char chars ) : bool

Determines if the specified character exists in the specified character array.

메소드 상세

Extract() 공개 메소드

Extracts a substring from the specified position to the end of the text
public Extract ( int start ) : string
start int
리턴 string

Extract() 공개 메소드

Extracts a substring from the specified range of the current text
public Extract ( int start, int end ) : string
start int
end int
리턴 string

IsInArray() 보호된 메소드

Determines if the specified character exists in the specified character array.
protected IsInArray ( char c, char chars ) : bool
c char Character to find
chars char Character array to search
리턴 bool

MoveAhead() 공개 메소드

Moves the current position ahead one character
public MoveAhead ( ) : void
리턴 void

MoveAhead() 공개 메소드

Moves the current position ahead the specified number of characters
public MoveAhead ( int ahead ) : void
ahead int The number of characters to move ahead
리턴 void

MovePast() 공개 메소드

Moves to the next occurrence of any character that is not one of the specified characters
public MovePast ( char chars ) : void
chars char Array of characters to move past
리턴 void

MovePastWhitespace() 공개 메소드

Moves the current position to the next character that is not whitespace
public MovePastWhitespace ( ) : void
리턴 void

MoveTo() 공개 메소드

Moves to the next occurrence of the specified character
public MoveTo ( char c ) : void
c char Character to find
리턴 void

MoveTo() 공개 메소드

Moves to the next occurrence of the specified string
public MoveTo ( string s, bool ignoreCase = false ) : void
s string String to find
ignoreCase bool Indicates if case-insensitive comparisons /// are used
리턴 void

MoveToEndOfLine() 공개 메소드

Moves the current position to the first character that is part of a newline
public MoveToEndOfLine ( ) : void
리턴 void

Peek() 공개 메소드

Returns the character at the current position, or a null character if we're at the end of the document
public Peek ( ) : char
리턴 char

Peek() 공개 메소드

Returns the character at the specified number of characters beyond the current position, or a null character if the specified position is at the end of the document
public Peek ( int ahead ) : char
ahead int The number of characters beyond the current position
리턴 char

Reset() 공개 메소드

Resets the current position to the start of the current document
public Reset ( ) : void
리턴 void

Reset() 공개 메소드

Sets the current document and resets the current position to the start of it
public Reset ( string text ) : void
text string
리턴 void

TextParser() 공개 메소드

public TextParser ( ) : System
리턴 System

TextParser() 공개 메소드

public TextParser ( string text ) : System
text string
리턴 System

프로퍼티 상세

NullChar 공개적으로 정적으로 프로퍼티

public static char NullChar
리턴 char