many: use Mu::Regex instead of std::regex

The former is PCRE-compatible, and faster than std::regex.
This commit is contained in:
Dirk-Jan C. Binnema
2022-12-30 09:58:54 +02:00
parent e97bbb83e3
commit 27ecbbdd65
8 changed files with 45 additions and 66 deletions

View File

@ -33,7 +33,6 @@
#include <type_traits>
#include <algorithm>
#include <numeric>
#include <regex>
#include "mu-utils-format.hh"
#include "mu-option.hh"
@ -97,16 +96,6 @@ std::vector<std::string> split(const std::string& str, const std::string& sepa);
*/
std::vector<std::string> split(const std::string& str, char sepa);
/**
* Split a string in parts
*
* @param str a string
* @param sepa the separator regex
*
* @return the parts.
*/
std::vector<std::string> split(const std::string& str, const std::regex& sepa_rx);
/**
* Join the strings in svec into a string, separated by sepa
*
@ -173,8 +162,6 @@ bool locale_workaround();
*/
bool timezone_available(const std::string& tz);
/**
* Well-known runtime paths
*