]>
git.saurik.com Git - wxWidgets.git/blob - src/stc/scintilla/lexlib/WordList.h
ea5be1d5509ca79f243ef2a56674bef18e22c867
1 // Scintilla source code edit control
3 ** Hold a list of words.
5 // Copyright 1998-2010 by Neil Hodgson <neilh@scintilla.org>
6 // The License.txt file describes the conditions under which this software may be distributed.
19 // Each word contains at least one character - a empty word acts as sentinel at the end.
23 bool onlyLineEnds
; ///< Delimited by any white space or only line ends
25 WordList(bool onlyLineEnds_
= false) :
26 words(0), list(0), len(0), onlyLineEnds(onlyLineEnds_
)
28 ~WordList() { Clear(); }
29 operator bool() const { return len
? true : false; }
30 bool operator!=(const WordList
&other
) const;
32 void Set(const char *s
);
33 bool InList(const char *s
) const;
34 bool InListAbbreviated(const char *s
, const char marker
) const;