Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
windtalker committed Jan 28, 2022
1 parent bf731f3 commit 721fa27
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions dbms/src/Functions/FunctionsStringSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -989,15 +989,15 @@ struct ReplaceRegexpImpl
}

static void vectorFixed(const ColumnString::Chars_t & data,
size_t n,
const std::string & needle,
const std::string & replacement,
const Int64 & pos,
const Int64 & occ,
const std::string & match_type,
std::shared_ptr<TiDB::ITiDBCollator> collator,
ColumnString::Chars_t & res_data,
ColumnString::Offsets & res_offsets)
size_t n,
const std::string & needle,
const std::string & replacement,
const Int64 & pos,
const Int64 & occ,
const std::string & match_type,
std::shared_ptr<TiDB::ITiDBCollator> collator,
ColumnString::Chars_t & res_data,
ColumnString::Offsets & res_offsets)
{
ColumnString::Offset res_offset = 0;
size_t size = data.size() / n;
Expand Down Expand Up @@ -1383,15 +1383,15 @@ struct ReplaceStringImpl
/// Note: this function converts fixed-length strings to variable-length strings
/// and each variable-length string should ends with zero byte.
static void vectorFixed(const ColumnString::Chars_t & data,
size_t n,
const std::string & needle,
const std::string & replacement,
const Int64 & /* pos */,
const Int64 & /* occ */,
const std::string & /* match_type */,
std::shared_ptr<TiDB::ITiDBCollator> /* collator */,
ColumnString::Chars_t & res_data,
ColumnString::Offsets & res_offsets)
size_t n,
const std::string & needle,
const std::string & replacement,
const Int64 & /* pos */,
const Int64 & /* occ */,
const std::string & /* match_type */,
std::shared_ptr<TiDB::ITiDBCollator> /* collator */,
ColumnString::Chars_t & res_data,
ColumnString::Offsets & res_offsets)
{
const UInt8 * begin = &data[0];
const UInt8 * pos = begin;
Expand Down

0 comments on commit 721fa27

Please sign in to comment.