aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/WordList.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-05-08 18:50:12 +1000
committernyamatongwe <devnull@localhost>2013-05-08 18:50:12 +1000
commiteefb45d1db944ef9ebeb1e30e3281dbe4d7e5218 (patch)
treed501a1471d1262f2c44b9484878c4151a41cb09d /lexlib/WordList.h
parentb7db33dd85ee178be818ed681be11e34f0a46ee1 (diff)
downloadscintilla-mirror-eefb45d1db944ef9ebeb1e30e3281dbe4d7e5218.tar.gz
Hide implementation of WordList.
Diffstat (limited to 'lexlib/WordList.h')
-rw-r--r--lexlib/WordList.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lexlib/WordList.h b/lexlib/WordList.h
index ea5be1d55..9c8285ece 100644
--- a/lexlib/WordList.h
+++ b/lexlib/WordList.h
@@ -15,23 +15,23 @@ namespace Scintilla {
/**
*/
class WordList {
-public:
// Each word contains at least one character - a empty word acts as sentinel at the end.
char **words;
char *list;
int len;
bool onlyLineEnds; ///< Delimited by any white space or only line ends
int starts[256];
- WordList(bool onlyLineEnds_ = false) :
- words(0), list(0), len(0), onlyLineEnds(onlyLineEnds_)
- {}
- ~WordList() { Clear(); }
- operator bool() const { return len ? true : false; }
+public:
+ WordList(bool onlyLineEnds_ = false);
+ ~WordList();
+ operator bool() const;
bool operator!=(const WordList &other) const;
+ int Length() const;
void Clear();
void Set(const char *s);
bool InList(const char *s) const;
bool InListAbbreviated(const char *s, const char marker) const;
+ const char *WordAt(int n) const;
};
#ifdef SCI_NAMESPACE