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

A helper class exposing various helper functions that are used in formatting, smart indent and elsewhere else.
파일 보기 프로젝트 열기: Microsoft/RTVS

공개 메소드들

메소드 설명
IsNewLineAfterPosition ( ITextProvider textProvider, int position ) : bool

Determines if there is nothing but whitespace between given position and the next line break or end of file.

IsWhitespaceOnlyBetweenPositions ( ITextProvider textProvider, int start, int end ) : bool

Determines if there is nothing but whitespace between given positions (end is non-inclusive).

SplitTextIntoLines ( string text ) : IList

Splits string into lines based on line breaks

메소드 상세

IsNewLineAfterPosition() 공개 정적인 메소드

Determines if there is nothing but whitespace between given position and the next line break or end of file.
public static IsNewLineAfterPosition ( ITextProvider textProvider, int position ) : bool
textProvider ITextProvider Text provider
position int Position to check
리턴 bool

IsWhitespaceOnlyBetweenPositions() 공개 정적인 메소드

Determines if there is nothing but whitespace between given positions (end is non-inclusive).
public static IsWhitespaceOnlyBetweenPositions ( ITextProvider textProvider, int start, int end ) : bool
textProvider ITextProvider Text provider
start int
end int
리턴 bool

SplitTextIntoLines() 공개 정적인 메소드

Splits string into lines based on line breaks
public static SplitTextIntoLines ( string text ) : IList
text string
리턴 IList