C# Class Microsoft.Languages.Core.Formatting.Whitespace

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

Méthodes publiques

Méthode Description
IsNewLineBeforePosition ( ITextIterator iterator, int position ) : bool

Determines if there is only whitespace and a line break before position

IsWhitespaceBeforePosition ( ITextIterator iterator, int position ) : bool

Determines if there is a whitespace before given position

LineBreaksAfterPosition ( ITextIterator iterator, int position ) : int

Determines number of line breaks after position

LineBreaksBeforePosition ( ITextIterator iterator, int position ) : int

Determines number of line breaks before position

NormalizeWhitespace ( this s ) : string

Method Details

IsNewLineBeforePosition() public static méthode

Determines if there is only whitespace and a line break before position
public static IsNewLineBeforePosition ( ITextIterator iterator, int position ) : bool
iterator ITextIterator
position int
Résultat bool

IsWhitespaceBeforePosition() public static méthode

Determines if there is a whitespace before given position
public static IsWhitespaceBeforePosition ( ITextIterator iterator, int position ) : bool
iterator ITextIterator
position int
Résultat bool

LineBreaksAfterPosition() public static méthode

Determines number of line breaks after position
public static LineBreaksAfterPosition ( ITextIterator iterator, int position ) : int
iterator ITextIterator
position int
Résultat int

LineBreaksBeforePosition() public static méthode

Determines number of line breaks before position
public static LineBreaksBeforePosition ( ITextIterator iterator, int position ) : int
iterator ITextIterator
position int
Résultat int

NormalizeWhitespace() public static méthode

public static NormalizeWhitespace ( this s ) : string
s this
Résultat string