MCPcopy Create free account
hub / github.com/duckdb/duckdb / ProcessCharacter

Method ProcessCharacter

tools/shell/shell_renderer.cpp:751–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749 }
750
751 void ProcessCharacter(char c) {
752 if (c == '\r') {
753 return;
754 }
755 if (c == '\n') {
756 // newline - compute the render width of the current line and reset
757 auto render_width = state.RenderLength(output);
758 if (render_width > max_width) {
759 max_width = render_width;
760 }
761 output = string();
762 return;
763 }
764 output += c;
765 }
766
767 void MeasureText(const char *str, idx_t str_len) {
768 for (idx_t i = 0; i < str_len; i++) {

Callers

nothing calls this directly

Calls 1

RenderLengthMethod · 0.80

Tested by

no test coverage detected