aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-10-29 09:22:42 +1100
committernyamatongwe <devnull@localhost>2010-10-29 09:22:42 +1100
commitb6b05245a0ec38cca368f33ae344f4990bb23ee8 (patch)
tree6c5a002762238ffa3b5b48e778b6fc76948b8897
parent19f5372dc7ebd540784ff8f7e45ba0eeb8b017e8 (diff)
downloadscintilla-mirror-b6b05245a0ec38cca368f33ae344f4990bb23ee8.tar.gz
Documentation
-rw-r--r--lexlib/WordList.cxx5
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;