diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-05-08 13:48:02 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-05-15 13:40:36 +0300 |
commit | 5a3e2bf9cbbcf6f4c33c0317a054ffffb3699b63 (patch) | |
tree | 244122d6c214d4f42e83000cb6b553b93634768c /scintilla/lexlib/WordList.h | |
parent | 4ec8a84b0b81489c687079215ffdedfc67ad1928 (diff) | |
download | notepad2-mod-5a3e2bf9cbbcf6f4c33c0317a054ffffb3699b63.zip notepad2-mod-5a3e2bf9cbbcf6f4c33c0317a054ffffb3699b63.tar.gz notepad2-mod-5a3e2bf9cbbcf6f4c33c0317a054ffffb3699b63.tar.bz2 |
Update Scintilla to 1d988d
Diffstat (limited to 'scintilla/lexlib/WordList.h')
-rw-r--r-- | scintilla/lexlib/WordList.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scintilla/lexlib/WordList.h b/scintilla/lexlib/WordList.h index 4ce0246..964d1fd 100644 --- a/scintilla/lexlib/WordList.h +++ b/scintilla/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
|