17e3be48a5
Fixes #318
20 lines
280 B
C++
20 lines
280 B
C++
#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)
|
|
{
|
|
re = Regex{str.begin(), str.end()};
|
|
}
|
|
|
|
}
|