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

파일 보기 프로젝트 열기: Microsoft/RTVS

공개 메소드들

메소드 설명
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