mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-25 23:33:53 +00:00
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user