edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
 
virtual ~CommentDefinitionItem ()
 the destructor
 
const QString & start ()
 returns the start regular expression
 
const QString & end ()
 returns the end regular expression
 
bool isBlockComment ()
 returns true if the definition is a block comment
 
RegExpcommentStartRegExp ()
 creates the regexp for the start regular expression
 
RegExpremoveCommentStartRegeExp ()
 creates the regexp for removing a comment
 

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: