2020-03-29 17:04:16 +00:00
|
|
|
#include "FunctionsMultiStringSearch.h"
|
|
|
|
#include "FunctionFactory.h"
|
|
|
|
#include "MultiSearchFirstPositionImpl.h"
|
|
|
|
#include "PositionImpl.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2020-09-07 18:00:37 +00:00
|
|
|
namespace
|
|
|
|
{
|
2020-03-29 17:04:16 +00:00
|
|
|
|
|
|
|
struct NameMultiSearchFirstPositionCaseInsensitive
|
|
|
|
{
|
|
|
|
static constexpr auto name = "multiSearchFirstPositionCaseInsensitive";
|
|
|
|
};
|
|
|
|
|
|
|
|
using FunctionMultiSearchFirstPositionCaseInsensitive
|
|
|
|
= FunctionsMultiStringSearch<MultiSearchFirstPositionImpl<PositionCaseInsensitiveASCII>, NameMultiSearchFirstPositionCaseInsensitive>;
|
|
|
|
|
2020-09-07 18:00:37 +00:00
|
|
|
}
|
|
|
|
|
2020-03-29 17:04:16 +00:00
|
|
|
void registerFunctionMultiSearchFirstPositionCaseInsensitive(FunctionFactory & factory)
|
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionMultiSearchFirstPositionCaseInsensitive>();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|