@@ -168,7 +168,8 @@ struct TrivialLineInflater
168
168
169
169
InflatedLineBuffer<Cell> inflate () &&
170
170
{
171
- vtParserLog ()(" Inflating TrivialLineBuffer: '{}'" , input.text .data () ? crispy::escape (input.text .data ()) : " " );
171
+ vtParserLog ()(" Inflating TrivialLineBuffer: '{}'" ,
172
+ input.text .data () ? crispy::escape (input.text .data ()) : " " );
172
173
auto lineSegmenter = unicode::grapheme_line_segmenter { *this , input.text .view () };
173
174
[[maybe_unused]] auto result = lineSegmenter.process (std::numeric_limits<unsigned >::max ());
174
175
assert (result.stop_condition == unicode::StopCondition::EndOfInput);
@@ -188,7 +189,6 @@ struct TrivialLineInflater
188
189
189
190
void on_invalid (std::string_view /* invalid*/ ) noexcept
190
191
{
191
- fmt::print (" inflate invalid\n " );
192
192
static constexpr char32_t ReplacementCharacter { 0xFFFD };
193
193
194
194
columns.emplace_back ();
@@ -198,7 +198,6 @@ struct TrivialLineInflater
198
198
199
199
void on_ascii (std::string_view text) noexcept
200
200
{
201
- fmt::print (" inflate ASCII: '{}'\n " , text);
202
201
for (auto const ch: text)
203
202
{
204
203
columns.emplace_back ();
@@ -209,7 +208,6 @@ struct TrivialLineInflater
209
208
210
209
void on_grapheme_cluster (std::string_view text, unsigned width) noexcept
211
210
{
212
- fmt::print (" inflate GC: '{}', width: {}\n " , text, width);
213
211
columns.emplace_back (input.textAttributes , input.hyperlink );
214
212
Cell& cell = columns.back ();
215
213
cell.setHyperlink (input.hyperlink );
@@ -220,20 +218,16 @@ struct TrivialLineInflater
220
218
unicode::ConvertResult const r = unicode::from_utf8 (utf8DecoderState, static_cast <uint8_t >(ch));
221
219
if (auto const * cp = std::get_if<unicode::Success>(&r))
222
220
{
223
- std::cout << fmt::format (" - codepoint: U+{:X}\n " , (unsigned ) cp->value );
224
221
if (cell.codepointCount () == 0 )
225
222
cell.setCharacter (cp->value );
226
223
else
227
224
(void ) cell.appendCharacter (cp->value );
228
225
}
229
226
}
230
227
231
- fmt::print (" -> result (UTF-8): \" {}\"\n " , cell.toUtf8 ());
232
-
233
228
// Fill remaining columns for wide characters
234
229
for (unsigned i = 1 ; i < width; ++i)
235
230
{
236
- std::cout << fmt::format (" - continuation\n " );
237
231
columns.emplace_back (input.textAttributes .with (CellFlag::WideCharContinuation), input.hyperlink );
238
232
cell.setWidth (width);
239
233
}
0 commit comments