diff options
| author | nyamatongwe <devnull@localhost> | 2010-10-29 09:22:42 +1100 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2010-10-29 09:22:42 +1100 |
| commit | b6b05245a0ec38cca368f33ae344f4990bb23ee8 (patch) | |
| tree | 6c5a002762238ffa3b5b48e778b6fc76948b8897 | |
| parent | 19f5372dc7ebd540784ff8f7e45ba0eeb8b017e8 (diff) | |
| download | scintilla-mirror-b6b05245a0ec38cca368f33ae344f4990bb23ee8.tar.gz | |
Documentation
| -rw-r--r-- | lexlib/WordList.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lexlib/WordList.cxx b/lexlib/WordList.cxx index b50c69498..cda35ece7 100644 --- a/lexlib/WordList.cxx +++ b/lexlib/WordList.cxx @@ -110,6 +110,11 @@ void WordList::Set(const char *s) { } } +/** Check whether a string is in the list. + * List elements are either exact matches or prefixes. + * Prefix elements start with '^' and match all strings that start with the rest of the element + * so '^GTK_' matches 'GTK_X', 'GTK_MAJOR_VERSION', and 'GTK_'. + */ bool WordList::InList(const char *s) const { if (0 == words) return false; |
