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 NameLowerUTF8 |
12 | { |
13 | static constexpr auto name = "lowerUTF8"; |
14 | }; |
15 | |
16 | using FunctionLowerUTF8 = FunctionStringToString<LowerUpperUTF8Impl<'A', 'Z', Poco::Unicode::toLower, UTF8CyrillicToCase<true>>, NameLowerUTF8>; |
17 | |
18 | void registerFunctionLowerUTF8(FunctionFactory & factory) |
19 | { |
20 | factory.registerFunction<FunctionLowerUTF8>(); |
21 | } |
22 | |
23 | } |
24 |