C# Класс Microsoft.Languages.Core.Text.TextProviderExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
IsNewLineBeforePosition ( this textProvider, int position ) : bool

Detemines if there is nothing but whitespace between given position and preceding line break or beginning of the file.

IsWhiteSpaceOnlyRange ( this textProvider, int start, int end ) : bool
IsWhitespaceBeforePosition ( this textProvider, int position ) : bool
LineBreaksAfterPosition ( this textProvider, int position ) : int

Counts number of line breaks between position and the nearest non-whitespace character that follows the position

LineBreaksBeforePosition ( this textProvider, int position ) : int

Counts number of line breaks between position and the nearest non-whitespace character that precedes the position

TryGetNewLineBeforePosition ( this textProvider, int position, int &newLinePosition ) : bool

Описание методов

IsNewLineBeforePosition() публичный статический Метод

Detemines if there is nothing but whitespace between given position and preceding line break or beginning of the file.
public static IsNewLineBeforePosition ( this textProvider, int position ) : bool
textProvider this Text provider
position int Position to check
Результат bool

IsWhiteSpaceOnlyRange() публичный статический Метод

public static IsWhiteSpaceOnlyRange ( this textProvider, int start, int end ) : bool
textProvider this
start int
end int
Результат bool

IsWhitespaceBeforePosition() публичный статический Метод

public static IsWhitespaceBeforePosition ( this textProvider, int position ) : bool
textProvider this
position int
Результат bool

LineBreaksAfterPosition() публичный статический Метод

Counts number of line breaks between position and the nearest non-whitespace character that follows the position
public static LineBreaksAfterPosition ( this textProvider, int position ) : int
textProvider this
position int
Результат int

LineBreaksBeforePosition() публичный статический Метод

Counts number of line breaks between position and the nearest non-whitespace character that precedes the position
public static LineBreaksBeforePosition ( this textProvider, int position ) : int
textProvider this
position int
Результат int

TryGetNewLineBeforePosition() публичный статический Метод

public static TryGetNewLineBeforePosition ( this textProvider, int position, int &newLinePosition ) : bool
textProvider this
position int
newLinePosition int
Результат bool