diff options
author | nyamatongwe <unknown> | 2013-05-08 18:50:12 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-05-08 18:50:12 +1000 |
commit | 2ab494b49811d760154a2640416a2cab5708b8c0 (patch) | |
tree | 37d9d45da8efd75ae1e688dc217568fe06f1b670 /lexlib/WordList.h | |
parent | fb9f49fcaf224a3df72a85ffd37072f0cd282769 (diff) | |
download | scintilla-mirror-2ab494b49811d760154a2640416a2cab5708b8c0.tar.gz |
Hide implementation of WordList.
Diffstat (limited to 'lexlib/WordList.h')
-rw-r--r-- | lexlib/WordList.h | 12 |
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 |