C# 클래스 Microsoft.Languages.Core.Text.CharacterStream

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

공개 메소드들

메소드 설명
Advance ( int offset ) : void

Moves current position forward or backward

CharacterStream ( ITextProvider textProvider, ITextRange range ) : System
CompareTo ( int position, int length, string text, bool ignoreCase ) : bool
GetSubstringAt ( int position, int length ) : string
IndexOf ( char ch, int start ) : int
IndexOf ( string text, int start, bool ignoreCase ) : int
IsAnsiLetter ( ) : bool

Determines if current character is an ANSI letter

IsAnsiLetter ( char character ) : bool

Determines if current character is an ANSI letter

IsAtNewLine ( ) : bool

Determines if current character is a new line character

IsAtString ( ) : bool

Determines if current character starts a string (i.e. current character is a single or double quote).

IsDecimal ( ) : bool

Determines if character is a decimal digit

IsDecimal ( char character ) : bool

Determines if character is a decimal digit

IsEndOfStream ( ) : bool

Determines if current position is at the end of text

IsHex ( ) : bool

Determines if character is a hexadecimal digit

IsHex ( char character ) : bool
IsLetter ( ) : bool

Determines if current character is a letter

IsLetter ( char character ) : bool

Determines if current character is a letter

IsNewLine ( char currentCharacter ) : bool
IsWhiteSpace ( ) : bool

Detemines if current character is a whitespace

LookAhead ( int offset ) : char

Returns characters at an offset from the current position

MoveToNextChar ( ) : bool

Moves position to the next character if possible. Returns false if position is at the end of stream.

SkipLineBreak ( ) : void
SkipToEol ( ) : void
SkipToWhitespace ( ) : void
SkipWhitespace ( ) : void
this ( int position ) : char

Returns character at a given position. If position is beyond text limits, returns '\0'

비공개 메소드들

메소드 설명
CharacterStream ( ITextProvider textProvider ) : System
CharacterStream ( string text ) : System
CheckBounds ( ) : void
ToString ( ) : string

메소드 상세

Advance() 공개 메소드

Moves current position forward or backward
public Advance ( int offset ) : void
offset int Offset to move by
리턴 void

CharacterStream() 공개 메소드

public CharacterStream ( ITextProvider textProvider, ITextRange range ) : System
textProvider ITextProvider
range ITextRange
리턴 System

CompareTo() 공개 메소드

public CompareTo ( int position, int length, string text, bool ignoreCase ) : bool
position int
length int
text string
ignoreCase bool
리턴 bool

GetSubstringAt() 공개 메소드

public GetSubstringAt ( int position, int length ) : string
position int
length int
리턴 string

IndexOf() 공개 메소드

public IndexOf ( char ch, int start ) : int
ch char
start int
리턴 int

IndexOf() 공개 메소드

public IndexOf ( string text, int start, bool ignoreCase ) : int
text string
start int
ignoreCase bool
리턴 int

IsAnsiLetter() 공개 메소드

Determines if current character is an ANSI letter
public IsAnsiLetter ( ) : bool
리턴 bool

IsAnsiLetter() 공개 정적인 메소드

Determines if current character is an ANSI letter
public static IsAnsiLetter ( char character ) : bool
character char
리턴 bool

IsAtNewLine() 공개 메소드

Determines if current character is a new line character
public IsAtNewLine ( ) : bool
리턴 bool

IsAtString() 공개 메소드

Determines if current character starts a string (i.e. current character is a single or double quote).
public IsAtString ( ) : bool
리턴 bool

IsDecimal() 공개 메소드

Determines if character is a decimal digit
public IsDecimal ( ) : bool
리턴 bool

IsDecimal() 공개 정적인 메소드

Determines if character is a decimal digit
public static IsDecimal ( char character ) : bool
character char
리턴 bool

IsEndOfStream() 공개 메소드

Determines if current position is at the end of text
public IsEndOfStream ( ) : bool
리턴 bool

IsHex() 공개 메소드

Determines if character is a hexadecimal digit
public IsHex ( ) : bool
리턴 bool

IsHex() 공개 정적인 메소드

public static IsHex ( char character ) : bool
character char
리턴 bool

IsLetter() 공개 메소드

Determines if current character is a letter
public IsLetter ( ) : bool
리턴 bool

IsLetter() 공개 정적인 메소드

Determines if current character is a letter
public static IsLetter ( char character ) : bool
character char
리턴 bool

IsNewLine() 공개 정적인 메소드

public static IsNewLine ( char currentCharacter ) : bool
currentCharacter char
리턴 bool

IsWhiteSpace() 공개 메소드

Detemines if current character is a whitespace
public IsWhiteSpace ( ) : bool
리턴 bool

LookAhead() 공개 메소드

Returns characters at an offset from the current position
public LookAhead ( int offset ) : char
offset int Offset from the current position
리턴 char

MoveToNextChar() 공개 메소드

Moves position to the next character if possible. Returns false if position is at the end of stream.
public MoveToNextChar ( ) : bool
리턴 bool

SkipLineBreak() 공개 메소드

public SkipLineBreak ( ) : void
리턴 void

SkipToEol() 공개 메소드

public SkipToEol ( ) : void
리턴 void

SkipToWhitespace() 공개 메소드

public SkipToWhitespace ( ) : void
리턴 void

SkipWhitespace() 공개 메소드

public SkipWhitespace ( ) : void
리턴 void

this() 공개 메소드

Returns character at a given position. If position is beyond text limits, returns '\0'
public this ( int position ) : char
position int Stream position
리턴 char