many: use Mu::Regex instead of std::regex
The former is PCRE-compatible, and faster than std::regex.
This commit is contained in:
@ -220,9 +220,6 @@ test_split()
|
||||
// char sepa
|
||||
assert_equal_svec(split("axbxc", 'x'), {"a", "b", "c"});
|
||||
assert_equal_svec(split("axbxcx", 'x'), {"a", "b", "c", ""});
|
||||
|
||||
// rx sexp
|
||||
assert_equal_svec(split("axbyc", std::regex("[xy]")), {"a", "b", "c"});
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user