mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 19:45:11 +00:00
update code style.
This commit is contained in:
parent
890d4655a0
commit
9d5fc02c5e
@ -10,13 +10,15 @@ namespace DB
|
||||
struct SoundexImpl
|
||||
{
|
||||
static constexpr auto name = "soundex";
|
||||
static constexpr size_t length = 4;
|
||||
// enum { length = 4 };
|
||||
enum
|
||||
{
|
||||
length = 4
|
||||
};
|
||||
/* ABCDEFGHIJKLMNOPQRSTUVWXYZ */
|
||||
/* :::::::::::::::::::::::::: */
|
||||
static constexpr auto soundex_map = "01230120022455012623010202";
|
||||
|
||||
static char getScode(const char * &ptr, const char * in_end)
|
||||
static char getScode(const char *& ptr, const char * in_end)
|
||||
{
|
||||
while (ptr < in_end && !std::isalpha(*ptr))
|
||||
{
|
||||
@ -68,7 +70,8 @@ struct SoundexImpl
|
||||
|
||||
REGISTER_FUNCTION(Soundex)
|
||||
{
|
||||
factory.registerFunction<FunctionStringHashFixedString<SoundexImpl>>({}, FunctionFactory::CaseInsensitive);
|
||||
factory.registerFunction<FunctionStringHashFixedString<SoundexImpl>>(
|
||||
Documentation{"Returns soundex code of a string."}, FunctionFactory::CaseInsensitive);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user