C# Class Rubberduck.Parsing.VBA.StringExtensions

Exibir arquivo Open project: retailcoder/Rubberduck

Public Methods

Method Description
HasComment ( this line, int &index ) : bool

Returns a value indicating whether line of code is/contains a comment.

NthIndexOf ( this line, char chr, int index ) : int
RemoveExtraSpacesLeavingIndentation ( this line ) : string
StripStringLiterals ( this line ) : string

Method Details

HasComment() public static method

Returns a value indicating whether line of code is/contains a comment.
public static HasComment ( this line, int &index ) : bool
line this The extended string.
index int The start index of the comment string.
return bool

NthIndexOf() public static method

public static NthIndexOf ( this line, char chr, int index ) : int
line this
chr char
index int
return int

RemoveExtraSpacesLeavingIndentation() public static method

public static RemoveExtraSpacesLeavingIndentation ( this line ) : string
line this
return string

StripStringLiterals() public static method

public static StripStringLiterals ( this line ) : string
line this
return string