summaryrefslogtreecommitdiffstats
path: root/src/htmlhelp.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-03-02 20:40:36 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-03-02 21:35:36 (GMT)
commit3d4f0313d20cc8f71ade094faa006a2171ff29c2 (patch)
tree0d84aff63e7b1bbd7bc46891771a90bc64ee58dc /src/htmlhelp.cpp
parent30d347bf8046775d6eab9bd8f70dbf3c3204e7b7 (diff)
downloadDoxygen-3d4f0313d20cc8f71ade094faa006a2171ff29c2.zip
Doxygen-3d4f0313d20cc8f71ade094faa006a2171ff29c2.tar.gz
Doxygen-3d4f0313d20cc8f71ade094faa006a2171ff29c2.tar.bz2
Refactoring: replaced std::regex with own much faster implementation
Diffstat (limited to 'src/htmlhelp.cpp')
-rw-r--r--src/htmlhelp.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp
index e3a007a..3d88e4f 100644
--- a/src/htmlhelp.cpp
+++ b/src/htmlhelp.cpp
@@ -16,7 +16,6 @@
*/
#include <algorithm>
-#include <regex>
#include <stdio.h>
#include <stdlib.h>
@@ -34,6 +33,7 @@
#include "filedef.h"
#include "util.h"
#include "linkedmap.h"
+#include "regex.h"
//----------------------------------------------------------------------------
@@ -154,10 +154,10 @@ void HtmlHelpIndex::addItem(const char *level1,const char *level2,
const char *url,const char *anchor,bool hasLink,
bool reversed)
{
- static const std::regex re("@[[:digit:]]+", std::regex::optimize);
+ static const reg::Ex re(R"(@\d+)");
std::string key = level1;
if (level2) key+= std::string("?") + level2;
- if (std::regex_search(key,re)) // skip anonymous stuff
+ if (reg::search(key,re)) // skip anonymous stuff
{
return;
}