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

Public Member Functions

 Tokenizer (HighlighterLanguage aLang)
void getHighlightPortions (const OUString &rLine, std::vector< HighlightPortion > &portions) const
void setKeyWords (const char **ppKeyWords, sal_uInt16 nCount)

Public Attributes

HighlighterLanguage const aLanguage

Private Member Functions

bool testCharFlags (sal_Unicode c, CharFlags nTestFlags) const
bool getNextToken (const sal_Unicode *&pos, TokenType &reType, const sal_Unicode *&rpStartPos, const sal_Unicode *&rpEndPos) const

Private Attributes

CharFlags aCharTypeTab [256]
const char ** ppListKeyWords
sal_uInt16 nKeyWordCount

Detailed Description

Definition at line 268 of file syntaxhighlight.cxx.

Constructor & Destructor Documentation

SyntaxHighlighter::Tokenizer::Tokenizer ( HighlighterLanguage  aLang)

Member Function Documentation

void SyntaxHighlighter::Tokenizer::getHighlightPortions ( const OUString &  rLine,
std::vector< HighlightPortion > &  portions 
) const

Definition at line 672 of file syntaxhighlight.cxx.

References eType.

bool SyntaxHighlighter::Tokenizer::getNextToken ( const sal_Unicode *&  pos,
TokenType reType,
const sal_Unicode *&  rpStartPos,
const sal_Unicode *&  rpEndPos 
) const
void SyntaxHighlighter::Tokenizer::setKeyWords ( const char **  ppKeyWords,
sal_uInt16  nCount 

Definition at line 309 of file syntaxhighlight.cxx.

bool SyntaxHighlighter::Tokenizer::testCharFlags ( sal_Unicode  c,
CharFlags  nTestFlags 
) const

Definition at line 294 of file syntaxhighlight.cxx.

References aCharTypeTab, InIdentifier, isAlpha(), and StartIdentifier.

Member Data Documentation

CharFlags SyntaxHighlighter::Tokenizer::aCharTypeTab[256]

Definition at line 271 of file syntaxhighlight.cxx.

Referenced by testCharFlags(), and Tokenizer().

HighlighterLanguage const SyntaxHighlighter::Tokenizer::aLanguage

Definition at line 284 of file syntaxhighlight.cxx.

sal_uInt16 SyntaxHighlighter::Tokenizer::nKeyWordCount

Definition at line 281 of file syntaxhighlight.cxx.

Referenced by Tokenizer().

const char** SyntaxHighlighter::Tokenizer::ppListKeyWords

Definition at line 280 of file syntaxhighlight.cxx.

Referenced by Tokenizer().

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