#include "regex.hh" namespace Kakoune { Regex::Regex(StringView re, RegexCompileFlags flags, MatchDirection direction) : m_impl{new CompiledRegex{compile_regex(re, flags, direction)}}, m_str{re.str()} {} String option_to_string(const Regex& re) { return re.str(); } void option_from_string(StringView str, Regex& re) { re = Regex{str}; } }