[drape] nits

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-11-24 17:34:56 +00:00
parent 3fabbae3f7
commit 03132c6877
17 changed files with 49 additions and 108 deletions

View File

@@ -4,14 +4,15 @@
#include "base/math.hpp"
#include "base/stl_helpers.hpp"
#include <boost/algorithm/string/trim.hpp>
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <iomanip>
#include <string>
#include <fast_double_parser.h>
#include <boost/algorithm/string/trim.hpp>
#include <string>
namespace strings
{
@@ -281,7 +282,7 @@ bool Truncate(std::string & utf8, size_t const maxTextLengthPlus1)
uint8_t bytesInCodepoint = 1;
if ((byte & 0x80) == 0x00)
bytesInCodepoint = 1;
{}
else if ((byte & 0xE0) == 0xC0)
bytesInCodepoint = 2;
else if ((byte & 0xF0) == 0xE0)