Style fix

This commit is contained in:
Matt Woenker 2024-08-07 16:21:16 -04:00
parent f4ed3f5c6d
commit cff7cbac94

View File

@ -159,19 +159,19 @@ void WriteBufferValidUTF8::finalizeImpl()
UInt8 len = length_of_utf8_sequence[static_cast<unsigned char>(*p)];
if (p + len > pos)
{
// Incomplete sequence. Skip one byte.
/// Incomplete sequence. Skip one byte.
putReplacement();
++p;
}
else if (Poco::UTF8Encoding::isLegal(reinterpret_cast<unsigned char *>(p), len))
{
// Valid sequence
/// Valid sequence
putValid(p, len);
p += len;
}
else
{
// Invalid sequence, skip first byte.
/// Invalid sequence, skip first byte.
putReplacement();
++p;
}