| 234 | } |
| 235 | |
| 236 | static int estimateWidth(char32_t codepoint) { |
| 237 | #if defined(_WIN32) |
| 238 | (void)codepoint; |
| 239 | return 1; |
| 240 | #else |
| 241 | return wcwidth(codepoint); |
| 242 | #endif |
| 243 | } |
| 244 | |
| 245 | static int put_codepoint(const char* utf8_codepoint, size_t length, int expectedWidth) { |
| 246 | #if defined(_WIN32) |