summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/searchindex.cpp2
-rw-r--r--src/util.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/searchindex.cpp b/src/searchindex.cpp
index 9afb7cb..cd048c4 100644
--- a/src/searchindex.cpp
+++ b/src/searchindex.cpp
@@ -555,7 +555,7 @@ QCString searchId(const Definition *d)
TextStream t;
for (size_t i=0;i<s.length();i++)
{
- if (isId(s[i]))
+ if (isIdJS(s[i]))
{
t << s[i];
}
diff --git a/src/util.h b/src/util.h
index 4d27a4c..ab30c61 100644
--- a/src/util.h
+++ b/src/util.h
@@ -191,6 +191,10 @@ inline bool isId(int c)
{
return c=='_' || c>=128 || c<0 || isalnum(c);
}
+inline bool isIdJS(int c)
+{
+ return c>=128 || c<0 || isalnum(c);
+}
QCString removeRedundantWhiteSpace(const QCString &s);