edbee - Qt Editor Library
Public Member Functions | List of all members
edbee::CommentDefinitionItem Class Reference

A helper structures for storing comment start and end definitions. More...

+ Collaboration diagram for edbee::CommentDefinitionItem:

Public Member Functions

 CommentDefinitionItem (const QString &startIn, const QString &endIn)
 constructs the definition More...
 
virtual ~CommentDefinitionItem ()
 the destructor More...
 
const QString & start ()
 returns the start regular expression More...
 
const QString & end ()
 returns the end regular expression More...
 
bool isBlockComment ()
 returns true if the definition is a block comment More...
 
RegExpcommentStartRegExp ()
 creates the regexp for the start regular expression More...
 
RegExpremoveCommentStartRegeExp ()
 creates the regexp for removing a comment More...
 

Detailed Description

A helper structures for storing comment start and end definitions.

Todo:

, we need to rewrite this for improved testability

, this code can be much clearer, if we let go of the TM_ structure!!

Constructor & Destructor Documentation

◆ CommentDefinitionItem()

edbee::CommentDefinitionItem::CommentDefinitionItem ( const QString &  startIn,
const QString &  endIn 
)
inline

constructs the definition

◆ ~CommentDefinitionItem()

virtual edbee::CommentDefinitionItem::~CommentDefinitionItem ( )
inlinevirtual

the destructor

Member Function Documentation

◆ commentStartRegExp()

RegExp* edbee::CommentDefinitionItem::commentStartRegExp ( )
inline

creates the regexp for the start regular expression

◆ end()

const QString& edbee::CommentDefinitionItem::end ( )
inline

returns the end regular expression

◆ isBlockComment()

bool edbee::CommentDefinitionItem::isBlockComment ( )
inline

returns true if the definition is a block comment

◆ removeCommentStartRegeExp()

RegExp* edbee::CommentDefinitionItem::removeCommentStartRegeExp ( )
inline

creates the regexp for removing a comment

◆ start()

const QString& edbee::CommentDefinitionItem::start ( )
inline

returns the start regular expression


The documentation for this class was generated from the following file: