aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Common/likePatternToRegexp.h
blob: 8c5033254ecea78ed8c3babbee012f984ccac13d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

#include <base/types.h>
#include <string_view>

namespace DB
{

/// Transforms the [I]LIKE expression into regexp re2. For example, abc%def -> ^abc.*def$
String likePatternToRegexp(std::string_view pattern);

}