ClickHouse/src/Functions/upperUTF8.cpp
2020-04-03 18:14:31 +03:00

24 lines
545 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 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>();
}
}