From 89206d94f9095ab9e3c9a8c0e5f3556c2d4b7333 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 16 May 2018 16:57:48 +1000 Subject: Move implementations into cxx file. Replace 0 and NULL with nullptr. Update comments. --- lexlib/LexerModule.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'lexlib/LexerModule.h') diff --git a/lexlib/LexerModule.h b/lexlib/LexerModule.h index 050f0470d..e1d65e703 100644 --- a/lexlib/LexerModule.h +++ b/lexlib/LexerModule.h @@ -20,8 +20,9 @@ typedef ILexer4 *(*LexerFactoryFunction)(); /** * A LexerModule is responsible for lexing and folding a particular language. - * The class maintains a list of LexerModules which can be searched to find a + * The Catalogue class maintains a list of LexerModules which can be searched to find a * module appropriate to a particular language. + * The ExternalLexerModule subclass holds lexers loaded from DLLs or shared libraries. */ class LexerModule { protected: @@ -35,20 +36,21 @@ protected: public: const char *languageName; - LexerModule(int language_, + LexerModule( + int language_, LexerFunction fnLexer_, - const char *languageName_=0, - LexerFunction fnFolder_=0, - const char * const wordListDescriptions_[] = NULL, + const char *languageName_=nullptr, + LexerFunction fnFolder_= nullptr, + const char * const wordListDescriptions_[]=nullptr, const LexicalClass *lexClasses_=nullptr, size_t nClasses_=0); - LexerModule(int language_, + LexerModule( + int language_, LexerFactoryFunction fnFactory_, const char *languageName_, - const char * const wordListDescriptions_[] = NULL); - virtual ~LexerModule() { - } - int GetLanguage() const { return language; } + const char * const wordListDescriptions_[]=nullptr); + virtual ~LexerModule(); + int GetLanguage() const; // -1 is returned if no WordList information is available int GetNumWordLists() const; -- cgit v1.2.3