C# 클래스 ICSharpCode.TextEditor.Document.TextUtilities

파일 보기 프로젝트 열기: jumpinjackie/fdotoolbox 1 사용 예제들

공개 메소드들

메소드 설명
FindNextWordStart ( IDocument document, int offset ) : int
FindPrevWordStart ( IDocument document, int offset ) : int
FindWordEnd ( IDocument document, int offset ) : int
FindWordStart ( IDocument document, int offset ) : int
GetCharacterType ( char c ) : CharacterType
GetExpressionBeforeOffset ( TextArea textArea, int initialOffset ) : string This method returns the expression before a specified offset. That method is used in code completion to determine the expression given to the parser for type resolve.
GetFirstNonWSChar ( IDocument document, int offset ) : int
GetLineAsString ( IDocument document, int lineNumber ) : string
GetWordAt ( IDocument document, int offset ) : string
IsEmptyLine ( IDocument document, LineSegment line ) : bool Returns true, if the line lineNumber is empty or filled with whitespaces.
IsEmptyLine ( IDocument document, int lineNumber ) : bool Returns true, if the line lineNumber is empty or filled with whitespaces.
IsLetterDigitOrUnderscore ( char c ) : bool
LeadingWhiteSpaceToTabs ( string line, int tabIndent ) : string This function takes a string and converts the whitespace in front of it to tabs. If the length of the whitespace at the start of the string was not a whole number of tabs then there will still be some spaces just before the text starts. the output string will be of the form: 1. zero or more tabs 2. zero or more spaces (less than tabIndent) 3. the rest of the line
SearchBracketBackward ( IDocument document, int offset, char openBracket, char closingBracket ) : int
SearchBracketForward ( IDocument document, int offset, char openBracket, char closingBracket ) : int

비공개 메소드들

메소드 설명
IsWordPart ( char ch ) : bool

메소드 상세

FindNextWordStart() 공개 정적인 메소드

public static FindNextWordStart ( IDocument document, int offset ) : int
document IDocument
offset int
리턴 int

FindPrevWordStart() 공개 정적인 메소드

public static FindPrevWordStart ( IDocument document, int offset ) : int
document IDocument
offset int
리턴 int

FindWordEnd() 공개 정적인 메소드

public static FindWordEnd ( IDocument document, int offset ) : int
document IDocument
offset int
리턴 int

FindWordStart() 공개 정적인 메소드

public static FindWordStart ( IDocument document, int offset ) : int
document IDocument
offset int
리턴 int

GetCharacterType() 공개 정적인 메소드

public static GetCharacterType ( char c ) : CharacterType
c char
리턴 CharacterType

GetExpressionBeforeOffset() 공개 정적인 메소드

This method returns the expression before a specified offset. That method is used in code completion to determine the expression given to the parser for type resolve.
public static GetExpressionBeforeOffset ( TextArea textArea, int initialOffset ) : string
textArea TextArea
initialOffset int
리턴 string

GetFirstNonWSChar() 공개 정적인 메소드

public static GetFirstNonWSChar ( IDocument document, int offset ) : int
document IDocument
offset int
리턴 int

GetLineAsString() 공개 정적인 메소드

public static GetLineAsString ( IDocument document, int lineNumber ) : string
document IDocument
lineNumber int
리턴 string

GetWordAt() 공개 정적인 메소드

public static GetWordAt ( IDocument document, int offset ) : string
document IDocument
offset int
리턴 string

IsEmptyLine() 공개 정적인 메소드

Returns true, if the line lineNumber is empty or filled with whitespaces.
public static IsEmptyLine ( IDocument document, LineSegment line ) : bool
document IDocument
line LineSegment
리턴 bool

IsEmptyLine() 공개 정적인 메소드

Returns true, if the line lineNumber is empty or filled with whitespaces.
public static IsEmptyLine ( IDocument document, int lineNumber ) : bool
document IDocument
lineNumber int
리턴 bool

IsLetterDigitOrUnderscore() 공개 정적인 메소드

public static IsLetterDigitOrUnderscore ( char c ) : bool
c char
리턴 bool

LeadingWhiteSpaceToTabs() 공개 정적인 메소드

This function takes a string and converts the whitespace in front of it to tabs. If the length of the whitespace at the start of the string was not a whole number of tabs then there will still be some spaces just before the text starts. the output string will be of the form: 1. zero or more tabs 2. zero or more spaces (less than tabIndent) 3. the rest of the line
public static LeadingWhiteSpaceToTabs ( string line, int tabIndent ) : string
line string
tabIndent int
리턴 string

SearchBracketBackward() 공개 정적인 메소드

public static SearchBracketBackward ( IDocument document, int offset, char openBracket, char closingBracket ) : int
document IDocument
offset int
openBracket char
closingBracket char
리턴 int

SearchBracketForward() 공개 정적인 메소드

public static SearchBracketForward ( IDocument document, int offset, char openBracket, char closingBracket ) : int
document IDocument
offset int
openBracket char
closingBracket char
리턴 int