C# Class Microsoft.Languages.Core.Text.CharacterStream

Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Méthodes publiques

Méthode Description
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'

Private Methods

Méthode Description
CharacterStream ( ITextProvider textProvider ) : System
CharacterStream ( string text ) : System
CheckBounds ( ) : void
ToString ( ) : string

Method Details

Advance() public méthode

Moves current position forward or backward
public Advance ( int offset ) : void
offset int Offset to move by
Résultat void

CharacterStream() public méthode

public CharacterStream ( ITextProvider textProvider, ITextRange range ) : System
textProvider ITextProvider
range ITextRange
Résultat System

CompareTo() public méthode

public CompareTo ( int position, int length, string text, bool ignoreCase ) : bool
position int
length int
text string
ignoreCase bool
Résultat bool

GetSubstringAt() public méthode

public GetSubstringAt ( int position, int length ) : string
position int
length int
Résultat string

IndexOf() public méthode

public IndexOf ( char ch, int start ) : int
ch char
start int
Résultat int

IndexOf() public méthode

public IndexOf ( string text, int start, bool ignoreCase ) : int
text string
start int
ignoreCase bool
Résultat int

IsAnsiLetter() public méthode

Determines if current character is an ANSI letter
public IsAnsiLetter ( ) : bool
Résultat bool

IsAnsiLetter() public static méthode

Determines if current character is an ANSI letter
public static IsAnsiLetter ( char character ) : bool
character char
Résultat bool

IsAtNewLine() public méthode

Determines if current character is a new line character
public IsAtNewLine ( ) : bool
Résultat bool

IsAtString() public méthode

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

IsDecimal() public méthode

Determines if character is a decimal digit
public IsDecimal ( ) : bool
Résultat bool

IsDecimal() public static méthode

Determines if character is a decimal digit
public static IsDecimal ( char character ) : bool
character char
Résultat bool

IsEndOfStream() public méthode

Determines if current position is at the end of text
public IsEndOfStream ( ) : bool
Résultat bool

IsHex() public méthode

Determines if character is a hexadecimal digit
public IsHex ( ) : bool
Résultat bool

IsHex() public static méthode

public static IsHex ( char character ) : bool
character char
Résultat bool

IsLetter() public méthode

Determines if current character is a letter
public IsLetter ( ) : bool
Résultat bool

IsLetter() public static méthode

Determines if current character is a letter
public static IsLetter ( char character ) : bool
character char
Résultat bool

IsNewLine() public static méthode

public static IsNewLine ( char currentCharacter ) : bool
currentCharacter char
Résultat bool

IsWhiteSpace() public méthode

Detemines if current character is a whitespace
public IsWhiteSpace ( ) : bool
Résultat bool

LookAhead() public méthode

Returns characters at an offset from the current position
public LookAhead ( int offset ) : char
offset int Offset from the current position
Résultat char

MoveToNextChar() public méthode

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

SkipLineBreak() public méthode

public SkipLineBreak ( ) : void
Résultat void

SkipToEol() public méthode

public SkipToEol ( ) : void
Résultat void

SkipToWhitespace() public méthode

public SkipToWhitespace ( ) : void
Résultat void

SkipWhitespace() public méthode

public SkipWhitespace ( ) : void
Résultat void

this() public méthode

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