home/src/regex.cc

20 lines
261 B
C++
Raw Normal View History

#include "regex.hh"
#include "exception.hh"
namespace Kakoune
{
String option_to_string(const Regex& re)
{
const auto& str = re.str();
return {str.begin(), str.end()};
}
void option_from_string(StringView str, Regex& re)
{
2015-07-25 12:15:03 +02:00
re = Regex{str};
}
}