C# Class CommentReflowerLib.CommentBlock

显示文件 Open project: kmunson/CommentReflowerVSIX Class Usage Examples

Public Properties

Property Type Description
mBlockEnd string
mBlockEndType StartEndBlockType
mBlockStart string
mBlockStartType StartEndBlockType
mFileAssociations string[]
mIsBlockEndRegEx bool
mIsBlockStartRegEx bool
mLineStart string
mName string
mOnlyEmptyLineBeforeStartOfBlock bool

Public Methods

Method Description
CommentBlock ( CommentBlock other ) : System
CommentBlock ( XmlReader r ) : System
CommentBlock ( string mName, string mFileAssociations, StartEndBlockType mBlockStartType, string mBlockStart, bool mIsBlockStartRegEx, StartEndBlockType mBlockEndType, string mBlockEnd, bool mIsBlockEndRegEx, string mLineStart, bool mOnlyEmptyLineBeforeStartOfBlock ) : System
createFileAssocFromString ( string st ) : string[]
dumpToXml ( XmlWriter w ) : void
getAssociationsAsString ( ) : string
lineHasBlockPattern ( string currentLine, int &indentation ) : bool
lineIsBlockContinuation ( string currentLine, int indent ) : bool
lineIsEndOfBlock ( string currentLine, string nextLine, int indent, string &matchedBlockEnd ) : bool
lineIsStartOfBlock ( string currentLine, string previousLine, int indent, string &matchedBlockStart, int &numSpacesTrimmedOffStart ) : bool

Private Methods

Method Description
getRegEx ( string str, bool isRegEx ) : string
lineIsPossibleBlockContinuationStart ( string currentLine, int indent ) : bool
lineMatchesBlockEnd ( string line, int indent, string &matchedBlockEnd ) : bool
lineMatchesBlockStart ( string line, int indent, string &matchedBlockStart, int &numSpacesTrimmedOffStart ) : bool

Method Details

CommentBlock() public method

public CommentBlock ( CommentBlock other ) : System
other CommentBlock
return System

CommentBlock() public method

public CommentBlock ( XmlReader r ) : System
r System.Xml.XmlReader
return System

CommentBlock() public method

public CommentBlock ( string mName, string mFileAssociations, StartEndBlockType mBlockStartType, string mBlockStart, bool mIsBlockStartRegEx, StartEndBlockType mBlockEndType, string mBlockEnd, bool mIsBlockEndRegEx, string mLineStart, bool mOnlyEmptyLineBeforeStartOfBlock ) : System
mName string
mFileAssociations string
mBlockStartType StartEndBlockType
mBlockStart string
mIsBlockStartRegEx bool
mBlockEndType StartEndBlockType
mBlockEnd string
mIsBlockEndRegEx bool
mLineStart string
mOnlyEmptyLineBeforeStartOfBlock bool
return System

createFileAssocFromString() public static method

public static createFileAssocFromString ( string st ) : string[]
st string
return string[]

dumpToXml() public method

public dumpToXml ( XmlWriter w ) : void
w System.Xml.XmlWriter
return void

getAssociationsAsString() public method

public getAssociationsAsString ( ) : string
return string

lineHasBlockPattern() public method

public lineHasBlockPattern ( string currentLine, int &indentation ) : bool
currentLine string
indentation int
return bool

lineIsBlockContinuation() public method

public lineIsBlockContinuation ( string currentLine, int indent ) : bool
currentLine string
indent int
return bool

lineIsEndOfBlock() public method

public lineIsEndOfBlock ( string currentLine, string nextLine, int indent, string &matchedBlockEnd ) : bool
currentLine string
nextLine string
indent int
matchedBlockEnd string
return bool

lineIsStartOfBlock() public method

public lineIsStartOfBlock ( string currentLine, string previousLine, int indent, string &matchedBlockStart, int &numSpacesTrimmedOffStart ) : bool
currentLine string
previousLine string
indent int
matchedBlockStart string
numSpacesTrimmedOffStart int
return bool

Property Details

mBlockEnd public_oe property

public string mBlockEnd
return string

mBlockEndType public_oe property

public StartEndBlockType mBlockEndType
return StartEndBlockType

mBlockStart public_oe property

public string mBlockStart
return string

mBlockStartType public_oe property

public StartEndBlockType mBlockStartType
return StartEndBlockType

mFileAssociations public_oe property

public string[] mFileAssociations
return string[]

mIsBlockEndRegEx public_oe property

public bool mIsBlockEndRegEx
return bool

mIsBlockStartRegEx public_oe property

public bool mIsBlockStartRegEx
return bool

mLineStart public_oe property

public string mLineStart
return string

mName public_oe property

public string mName
return string

mOnlyEmptyLineBeforeStartOfBlock public_oe property

public bool mOnlyEmptyLineBeforeStartOfBlock
return bool