| 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++) { |
nothing calls this directly
no test coverage detected