mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-20 05:05:38 +00:00
Style fix
This commit is contained in:
parent
f4ed3f5c6d
commit
cff7cbac94
@ -159,19 +159,19 @@ void WriteBufferValidUTF8::finalizeImpl()
|
|||||||
UInt8 len = length_of_utf8_sequence[static_cast<unsigned char>(*p)];
|
UInt8 len = length_of_utf8_sequence[static_cast<unsigned char>(*p)];
|
||||||
if (p + len > pos)
|
if (p + len > pos)
|
||||||
{
|
{
|
||||||
// Incomplete sequence. Skip one byte.
|
/// Incomplete sequence. Skip one byte.
|
||||||
putReplacement();
|
putReplacement();
|
||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
else if (Poco::UTF8Encoding::isLegal(reinterpret_cast<unsigned char *>(p), len))
|
else if (Poco::UTF8Encoding::isLegal(reinterpret_cast<unsigned char *>(p), len))
|
||||||
{
|
{
|
||||||
// Valid sequence
|
/// Valid sequence
|
||||||
putValid(p, len);
|
putValid(p, len);
|
||||||
p += len;
|
p += len;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Invalid sequence, skip first byte.
|
/// Invalid sequence, skip first byte.
|
||||||
putReplacement();
|
putReplacement();
|
||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user