From 74537dd24ba7943e79652b06f4b752be2035bcea Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 18 Aug 2000 10:45:24 +0000 Subject: Added in most of Ferdinand Prantl's changes except for regular expression search. Some bits not quite done as well. --- src/AutoComplete.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/AutoComplete.cxx') diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx index f9dbd4d67..6866364c1 100644 --- a/src/AutoComplete.cxx +++ b/src/AutoComplete.cxx @@ -14,7 +14,9 @@ AutoComplete::AutoComplete() { active = false; posStart = 0; strcpy(stopChars, ""); + strcpy(fillUpChars, ""); separator = ' '; + ignoreCase = false; cancelAtStartPos = true; } @@ -45,6 +47,15 @@ bool AutoComplete::IsStopChar(char ch) { return ch && strchr(stopChars, ch); } +void AutoComplete::SetFillUpChars(const char *fillUpChars_) { + strncpy(fillUpChars, fillUpChars_, sizeof(fillUpChars)); + fillUpChars[sizeof(fillUpChars) - 1] = '\0'; +} + +bool AutoComplete::IsFillUpChar(char ch) { + return ch && strchr(fillUpChars, ch); +} + void AutoComplete::SetSeparator(char separator_) { separator = separator_; } -- cgit v1.2.3