C# 클래스 Microsoft.Scripting.Runtime.TokenizerBuffer

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

공개 메소드들

메소드 설명
Back ( ) : void
DiscardToken ( ) : void

Marks token start. It means the buffer can drop the current token. Can be called even if no token has been read yet.

GetChar ( int offset ) : char
GetCharRelative ( int disp ) : char
GetTokenSubstring ( int offset ) : string
GetTokenSubstring ( int offset, int length ) : string
Initialize ( TextReader reader, SourceLocation initialLocation, int initialCapacity, bool multiEolns ) : void
IsEoln ( int current ) : bool
MarkMultiLineTokenEnd ( ) : void

Marks token end. Enables to read the current token.

MarkMultiLineTokenEnd ( int disp ) : void
MarkSingleLineTokenEnd ( ) : void
MarkSingleLineTokenEnd ( int disp ) : void
MarkTokenEnd ( bool isMultiLine ) : void
Peek ( ) : int
Read ( int ch ) : bool
Read ( string str ) : bool
Read ( ) : int
ReadEolnOpt ( int current ) : int
ReadLine ( ) : int

Reads till the end of line and returns the character that stopped the reading. The returned character is not skipped.

Seek ( int offset ) : void

Sets the current position inside current token or one character behind it.

SeekRelative ( int disp ) : void

Sets the current position inside current token or one character behind it. A relative displacement with respect to the current position in the token is specified.

TokenizerBuffer ( TextReader reader, SourceLocation initialLocation, int initialCapacity, bool multiEolns ) : System

비공개 메소드들

메소드 설명
CheckInvariants ( ) : void
ClearInvalidChars ( ) : void
DumpToken ( ) : void
GetTokenEndMultiEolns ( ) : SourceLocation
GetTokenEndSingleEoln ( ) : SourceLocation
GetTokenString ( ) : string
RefillBuffer ( ) : void
ResizeInternal ( char &array, int newSize, int start, int count ) : void

Resizes an array to a speficied new size and copies a portion of the original array into its beginning.

메소드 상세

Back() 공개 메소드

public Back ( ) : void
리턴 void

DiscardToken() 공개 메소드

Marks token start. It means the buffer can drop the current token. Can be called even if no token has been read yet.
public DiscardToken ( ) : void
리턴 void

GetChar() 공개 메소드

public GetChar ( int offset ) : char
offset int
리턴 char

GetCharRelative() 공개 메소드

public GetCharRelative ( int disp ) : char
disp int
리턴 char

GetTokenSubstring() 공개 메소드

public GetTokenSubstring ( int offset ) : string
offset int
리턴 string

GetTokenSubstring() 공개 메소드

public GetTokenSubstring ( int offset, int length ) : string
offset int
length int
리턴 string

Initialize() 공개 메소드

public Initialize ( TextReader reader, SourceLocation initialLocation, int initialCapacity, bool multiEolns ) : void
reader System.IO.TextReader
initialLocation SourceLocation
initialCapacity int
multiEolns bool
리턴 void

IsEoln() 공개 메소드

public IsEoln ( int current ) : bool
current int
리턴 bool

MarkMultiLineTokenEnd() 공개 메소드

Marks token end. Enables to read the current token.
public MarkMultiLineTokenEnd ( ) : void
리턴 void

MarkMultiLineTokenEnd() 공개 메소드

public MarkMultiLineTokenEnd ( int disp ) : void
disp int
리턴 void

MarkSingleLineTokenEnd() 공개 메소드

public MarkSingleLineTokenEnd ( ) : void
리턴 void

MarkSingleLineTokenEnd() 공개 메소드

public MarkSingleLineTokenEnd ( int disp ) : void
disp int
리턴 void

MarkTokenEnd() 공개 메소드

public MarkTokenEnd ( bool isMultiLine ) : void
isMultiLine bool
리턴 void

Peek() 공개 메소드

public Peek ( ) : int
리턴 int

Read() 공개 메소드

public Read ( int ch ) : bool
ch int
리턴 bool

Read() 공개 메소드

public Read ( string str ) : bool
str string
리턴 bool

Read() 공개 메소드

public Read ( ) : int
리턴 int

ReadEolnOpt() 공개 메소드

public ReadEolnOpt ( int current ) : int
current int
리턴 int

ReadLine() 공개 메소드

Reads till the end of line and returns the character that stopped the reading. The returned character is not skipped.
public ReadLine ( ) : int
리턴 int

Seek() 공개 메소드

Sets the current position inside current token or one character behind it.
public Seek ( int offset ) : void
offset int
리턴 void

SeekRelative() 공개 메소드

Sets the current position inside current token or one character behind it. A relative displacement with respect to the current position in the token is specified.
public SeekRelative ( int disp ) : void
disp int
리턴 void

TokenizerBuffer() 공개 메소드

public TokenizerBuffer ( TextReader reader, SourceLocation initialLocation, int initialCapacity, bool multiEolns ) : System
reader TextReader
initialLocation SourceLocation
initialCapacity int
multiEolns bool
리턴 System