C# Class ShaderTools.VisualStudio.Core.Util.Extensions.StringExtensions

Mostra file Open project: tgjones/HlslTools

Public Methods

Method Description
ContainsLineBreak ( this text ) : bool
ContainsTab ( this text ) : bool
ConvertTabToSpace ( this textSnippet, int tabSize, int initialColumn, int endPosition ) : int
GetColumnFromLineOffset ( this line, int endPosition, int tabSize ) : int
GetColumnOfFirstNonWhitespaceCharacterOrEndOfLine ( this line, int tabSize ) : int
GetFirstLineText ( this text ) : string
GetFirstNonWhitespaceOffset ( this line ) : int?
GetLastLineText ( this text ) : string
GetLeadingWhitespace ( this lineText ) : string
GetLineOffsetFromColumn ( this line, int column, int tabSize ) : int
GetNumberOfLineBreaks ( this text ) : int
GetTextColumn ( this text, int tabSize, int initialColumn ) : int
IndexOf ( this text, bool>.Func predicate ) : int

Method Details

ContainsLineBreak() public static method

public static ContainsLineBreak ( this text ) : bool
text this
return bool

ContainsTab() public static method

public static ContainsTab ( this text ) : bool
text this
return bool

ConvertTabToSpace() public static method

public static ConvertTabToSpace ( this textSnippet, int tabSize, int initialColumn, int endPosition ) : int
textSnippet this
tabSize int
initialColumn int
endPosition int
return int

GetColumnFromLineOffset() public static method

public static GetColumnFromLineOffset ( this line, int endPosition, int tabSize ) : int
line this
endPosition int
tabSize int
return int

GetColumnOfFirstNonWhitespaceCharacterOrEndOfLine() public static method

public static GetColumnOfFirstNonWhitespaceCharacterOrEndOfLine ( this line, int tabSize ) : int
line this
tabSize int
return int

GetFirstLineText() public static method

public static GetFirstLineText ( this text ) : string
text this
return string

GetFirstNonWhitespaceOffset() public static method

public static GetFirstNonWhitespaceOffset ( this line ) : int?
line this
return int?

GetLastLineText() public static method

public static GetLastLineText ( this text ) : string
text this
return string

GetLeadingWhitespace() public static method

public static GetLeadingWhitespace ( this lineText ) : string
lineText this
return string

GetLineOffsetFromColumn() public static method

public static GetLineOffsetFromColumn ( this line, int column, int tabSize ) : int
line this
column int
tabSize int
return int

GetNumberOfLineBreaks() public static method

public static GetNumberOfLineBreaks ( this text ) : int
text this
return int

GetTextColumn() public static method

public static GetTextColumn ( this text, int tabSize, int initialColumn ) : int
text this
tabSize int
initialColumn int
return int

IndexOf() public static method

public static IndexOf ( this text, bool>.Func predicate ) : int
text this
predicate bool>.Func
return int