mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
27 lines
522 B
C++
27 lines
522 B
C++
#include <Functions/FunctionStringToString.h>
|
|
#include <Functions/LowerUpperUTF8Impl.h>
|
|
#include <Functions/FunctionFactory.h>
|
|
#include <Poco/Unicode.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameUpperUTF8
|
|
{
|
|
static constexpr auto name = "upperUTF8";
|
|
};
|
|
|
|
using FunctionUpperUTF8 = FunctionStringToString<LowerUpperUTF8Impl<'a', 'z', Poco::Unicode::toUpper, UTF8CyrillicToCase<false>>, NameUpperUTF8>;
|
|
|
|
}
|
|
|
|
void registerFunctionUpperUTF8(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionUpperUTF8>();
|
|
}
|
|
|
|
}
|