| 1 | #include <DataTypes/DataTypeString.h> |
|---|---|
| 2 | #include <Functions/FunctionStringToString.h> |
| 3 | #include <Functions/LowerUpperUTF8Impl.h> |
| 4 | #include <Functions/FunctionFactory.h> |
| 5 | #include <Poco/Unicode.h> |
| 6 | |
| 7 | |
| 8 | namespace DB |
| 9 | { |
| 10 | |
| 11 | struct NameUpperUTF8 |
| 12 | { |
| 13 | static constexpr auto name = "upperUTF8"; |
| 14 | }; |
| 15 | |
| 16 | using FunctionUpperUTF8 = FunctionStringToString<LowerUpperUTF8Impl<'a', 'z', Poco::Unicode::toUpper, UTF8CyrillicToCase<false>>, NameUpperUTF8>; |
| 17 | |
| 18 | void registerFunctionUpperUTF8(FunctionFactory & factory) |
| 19 | { |
| 20 | factory.registerFunction<FunctionUpperUTF8>(); |
| 21 | } |
| 22 | |
| 23 | } |
| 24 |