aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/upperUTF8.cpp
blob: 659e67f0ef3020f2aeb5a03f11c81423acaf3e03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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>;

}

REGISTER_FUNCTION(UpperUTF8)
{
    factory.registerFunction<FunctionUpperUTF8>();
}

}