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