summaryrefslogtreecommitdiff
path: root/src/regex.cc
blob: 39a298cc574b95a232ff191262b9d7cf8fed754b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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};
}

}