mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
4088c0a7f3
Automated register all functions with below naming convention by iterating through the symbols: void DB::registerXXX(DB::FunctionFactory &)
28 lines
530 B
C++
28 lines
530 B
C++
#include <DataTypes/DataTypeString.h>
|
|
#include <Functions/FunctionStringToString.h>
|
|
#include <Functions/LowerUpperUTF8Impl.h>
|
|
#include <Functions/FunctionFactory.h>
|
|
#include <Poco/Unicode.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameLowerUTF8
|
|
{
|
|
static constexpr auto name = "lowerUTF8";
|
|
};
|
|
|
|
using FunctionLowerUTF8 = FunctionStringToString<LowerUpperUTF8Impl<'A', 'Z', Poco::Unicode::toLower, UTF8CyrillicToCase<true>>, NameLowerUTF8>;
|
|
|
|
}
|
|
|
|
REGISTER_FUNCTION(LowerUTF8)
|
|
{
|
|
factory.registerFunction<FunctionLowerUTF8>();
|
|
}
|
|
|
|
}
|