mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
24 lines
544 B
C++
24 lines
544 B
C++
#include <DataTypes/DataTypeString.h>
|
|
#include <Functions/FunctionStringToString.h>
|
|
#include <Functions/LowerUpperUTF8Impl.h>
|
|
#include <Functions/FunctionFactory.h>
|
|
#include <Poco/Unicode.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
struct NameLowerUTF8
|
|
{
|
|
static constexpr auto name = "lowerUTF8";
|
|
};
|
|
|
|
using FunctionLowerUTF8 = FunctionStringToString<LowerUpperUTF8Impl<'A', 'Z', Poco::Unicode::toLower, UTF8CyrillicToCase<true>>, NameLowerUTF8>;
|
|
|
|
void registerFunctionLowerUTF8(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionLowerUTF8>();
|
|
}
|
|
|
|
}
|