diff options
-rw-r--r-- | src/searchindex.cpp | 2 | ||||
-rw-r--r-- | src/util.h | 4 |
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]; } @@ -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); |