2018-09-09 23:36:06 +00:00
|
|
|
#include <DataTypes/DataTypeString.h>
|
|
|
|
#include <Functions/FunctionStringToString.h>
|
|
|
|
#include <Functions/LowerUpperUTF8Impl.h>
|
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include <Poco/Unicode.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2020-09-07 18:00:37 +00:00
|
|
|
namespace
|
|
|
|
{
|
2018-09-09 23:36:06 +00:00
|
|
|
|
|
|
|
struct NameLowerUTF8
|
|
|
|
{
|
|
|
|
static constexpr auto name = "lowerUTF8";
|
|
|
|
};
|
|
|
|
|
|
|
|
using FunctionLowerUTF8 = FunctionStringToString<LowerUpperUTF8Impl<'A', 'Z', Poco::Unicode::toLower, UTF8CyrillicToCase<true>>, NameLowerUTF8>;
|
|
|
|
|
2020-09-07 18:00:37 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(LowerUTF8)
|
2018-09-09 23:36:06 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionLowerUTF8>();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|