49 inline bool init(std::string_view regex_str,
bool ignore_case) {
52 const auto commonflags = srell::regex::ECMAScript | srell::regex::vmode |
54 const auto flag = ignore_case
55 ? (commonflags | srell::regex::icase)
57 return re_.assign(regex_str.data(), regex_str.length(), flag).ecode() == 0;