mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[poincare] Clearer CodePointLayout log
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <ion/unicode/code_point.h>
|
||||
#include <poincare/layout_cursor.h>
|
||||
#include <poincare/layout.h>
|
||||
#include <poincare/serialization_helper.h>
|
||||
|
||||
namespace Poincare {
|
||||
|
||||
@@ -40,7 +41,10 @@ public:
|
||||
stream << "CodePointLayout";
|
||||
}
|
||||
virtual void logAttributes(std::ostream & stream) const override {
|
||||
stream << " CodePoint=\"" << m_codePoint << "\"";
|
||||
constexpr int bufferSize = CodePoint::MaxCodePointCharLength + 1;
|
||||
char buffer[bufferSize];
|
||||
SerializationHelper::CodePoint(buffer, bufferSize, m_codePoint);
|
||||
stream << " CodePoint=\"" << buffer << "\"";
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user