ClickHouse/src/Functions/upperUTF8.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
493 B
C++
Raw Normal View History

2018-09-09 23:36:06 +00:00
#include <Functions/FunctionStringToString.h>
#include <Functions/LowerUpperUTF8Impl.h>
#include <Functions/FunctionFactory.h>
#include <Poco/Unicode.h>
namespace DB
{
2020-09-07 18:00:37 +00:00
namespace
{
2018-09-09 23:36:06 +00:00
struct NameUpperUTF8
{
static constexpr auto name = "upperUTF8";
};
using FunctionUpperUTF8 = FunctionStringToString<LowerUpperUTF8Impl<'a', 'z', Poco::Unicode::toUpper, UTF8CyrillicToCase<false>>, NameUpperUTF8>;
2020-09-07 18:00:37 +00:00
}
REGISTER_FUNCTION(UpperUTF8)
2018-09-09 23:36:06 +00:00
{
factory.registerFunction<FunctionUpperUTF8>();
}
}