From eefb45d1db944ef9ebeb1e30e3281dbe4d7e5218 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 8 May 2013 18:50:12 +1000 Subject: Hide implementation of WordList. --- lexers/LexCPP.cxx | 6 +++--- lexers/LexModula.cxx | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'lexers') diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index 0e14eebdb..9b56641e6 100644 --- a/lexers/LexCPP.cxx +++ b/lexers/LexCPP.cxx @@ -455,9 +455,9 @@ int SCI_METHOD LexerCPP::WordListSet(int n, const char *wl) { if (n == 4) { // Rebuild preprocessorDefinitions preprocessorDefinitionsStart.clear(); - for (int nDefinition = 0; nDefinition < ppDefinitions.len; nDefinition++) { - char *cpDefinition = ppDefinitions.words[nDefinition]; - char *cpEquals = strchr(cpDefinition, '='); + for (int nDefinition = 0; nDefinition < ppDefinitions.Length(); nDefinition++) { + const char *cpDefinition = ppDefinitions.WordAt(nDefinition); + const char *cpEquals = strchr(cpDefinition, '='); if (cpEquals) { std::string name(cpDefinition, cpEquals - cpDefinition); std::string val(cpEquals+1); diff --git a/lexers/LexModula.cxx b/lexers/LexModula.cxx index cc5847fd6..ed615609c 100644 --- a/lexers/LexModula.cxx +++ b/lexers/LexModula.cxx @@ -63,16 +63,16 @@ static inline unsigned IsOperator( StyleContext & sc, WordList & op ) { s[0] = sc.ch; s[1] = sc.chNext; s[2] = 0; - for( i = 0; i < op.len; i++ ) { - if( ( strlen( op.words[i] ) == 2 ) && - ( s[0] == op.words[i][0] && s[1] == op.words[i][1] ) ) { + for( i = 0; i < op.Length(); i++ ) { + if( ( strlen( op.WordAt(i) ) == 2 ) && + ( s[0] == op.WordAt(i)[0] && s[1] == op.WordAt(i)[1] ) ) { return 2; } } s[1] = 0; - for( i = 0; i < op.len; i++ ) { - if( ( strlen( op.words[i] ) == 1 ) && - ( s[0] == op.words[i][0] ) ) { + for( i = 0; i < op.Length(); i++ ) { + if( ( strlen( op.WordAt(i) ) == 1 ) && + ( s[0] == op.WordAt(i)[0] ) ) { return 1; } } -- cgit v1.2.3