7#ifndef __PHIGHLIGHTPARSER_H__
8#define __PHIGHLIGHTPARSER_H__
42 void addToken(
const PVecString & vecToken,
const PString & replaceBeforePattern,
const PString & replaceAfterPattern);
44 void addToken(
const PString & beginPattern,
const PString & endPattern,
const PString & replaceBeforePattern,
const PString & replaceAfterPattern);
PMapTree< char, PHighlightingAction * > PReplaceHightlightTree
classe qui permet de parser des fichiers texte en renvoyant les tokens les uns après les autres
virtual ~PHighlightParser()
Destructor of PHighlightParser.
PHighlightParser()
Default constructor of PHighlightParser.
PReplaceHightlightTree p_replaceTree
Map of tree to be used to do the hightlighting.
std::vector< PHighlightingAction * > p_vecPtrAction
Vector of pointer of PHighlightingAction.
void doReplaceAction(PString &out, PFileParser &parser, PHighlightingAction *action, const PString &replacePattern, size_t indexLastMatchReplace)
Do the replace action.
void clear()
Clear all PHighlightingAction.
void initialisationPHighlightParser()
Initialisation function of the class PHighlightParser.
void addToken(const PVecString &vecToken, const PString &replaceBeforePattern, const PString &replaceAfterPattern)
Add token in the highlighter.
PString makeHighlighting(const PString &content)
Do the highlighting of the given PString.
PHighlightType
Type of the hightlighting.
@ GET_UNITL_WITHOUT_PATTERN
Action of the hightlighting.
PString endPattern
End pattern to be used with the GET_UNITL_WITHOUT_PATTERN.
PString replaceBeforePattern
String to be placed before the replaced pattern.
PString replaceAfterPattern
String to be placed after the replaced pattern.
PHighlightType::PHighlightType type
Type of the hightlighting.