LibreOffice Module comphelper (master) 1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SyntaxHighlighter Class Reference

#include <syntaxhighlight.hxx>

Classes

class  Tokenizer
 

Public Member Functions

 SyntaxHighlighter (HighlighterLanguage language)
 
 ~SyntaxHighlighter ()
 
void getHighlightPortions (std::u16string_view rLine, std::vector< HighlightPortion > &pPortions) const
 
HighlighterLanguage GetLanguage () const
 

Private Member Functions

 SyntaxHighlighter (const SyntaxHighlighter &)=delete
 
SyntaxHighlighteroperator= (const SyntaxHighlighter &)=delete
 

Private Attributes

std::unique_ptr< Tokenizerm_tokenizer
 

Detailed Description

Definition at line 64 of file syntaxhighlight.hxx.

Constructor & Destructor Documentation

◆ SyntaxHighlighter() [1/2]

SyntaxHighlighter::SyntaxHighlighter ( const SyntaxHighlighter )
privatedelete

◆ SyntaxHighlighter() [2/2]

SyntaxHighlighter::SyntaxHighlighter ( HighlighterLanguage  language)

Definition at line 709 of file syntaxhighlight.cxx.

References Basic, m_tokenizer, SQL, strListBasicKeyWords, and strListSqlKeyWords.

◆ ~SyntaxHighlighter()

SyntaxHighlighter::~SyntaxHighlighter ( )

Definition at line 727 of file syntaxhighlight.cxx.

Member Function Documentation

◆ getHighlightPortions()

void SyntaxHighlighter::getHighlightPortions ( std::u16string_view  rLine,
std::vector< HighlightPortion > &  pPortions 
) const

Definition at line 729 of file syntaxhighlight.cxx.

References m_tokenizer.

◆ GetLanguage()

HighlighterLanguage SyntaxHighlighter::GetLanguage ( ) const

Definition at line 735 of file syntaxhighlight.cxx.

References m_tokenizer.

◆ operator=()

SyntaxHighlighter & SyntaxHighlighter::operator= ( const SyntaxHighlighter )
privatedelete

References GetLanguage().

Member Data Documentation

◆ m_tokenizer

std::unique_ptr<Tokenizer> SyntaxHighlighter::m_tokenizer
private

Definition at line 68 of file syntaxhighlight.hxx.

Referenced by getHighlightPortions(), GetLanguage(), and SyntaxHighlighter().


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