diff options
author | nyamatongwe <unknown> | 2010-10-29 09:22:42 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-10-29 09:22:42 +1100 |
commit | 9886a2cabd22524c90091ec39f1ddb4c250b46ac (patch) | |
tree | 8fb6d0673a22e6cf26f26089f35ba9890ecd433c | |
parent | 262561896511d2dea226dc5a134cd28204f93095 (diff) | |
download | scintilla-mirror-9886a2cabd22524c90091ec39f1ddb4c250b46ac.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; |