variadic_table icon indicating copy to clipboard operation
variadic_table copied to clipboard

offset with muti byte character

Open arzeo68 opened this issue 3 years ago • 0 comments

I had an issue with multi byte character (éèêë ÉÈÊË àâ ÀÂ Çç).

I fix it by replacing the line l.266 in prettyPrinter.hpp

Before:

return data.size();

Fix:

return std::count_if(data.begin(), data.end(),[](char c) { return (static_cast<unsigned char>(c) & 0xC0) != 0x80; } );

arzeo68 avatar Sep 03 '22 23:09 arzeo68