| 282 | } |
| 283 | |
| 284 | static int estimateWidth(char32_t codepoint) { |
| 285 | #if defined(_WIN32) |
| 286 | (void)codepoint; |
| 287 | return 1; |
| 288 | #else |
| 289 | return wcwidth(codepoint); |
| 290 | #endif |
| 291 | } |
| 292 | |
| 293 | static int put_codepoint(const char* utf8_codepoint, size_t length, int expectedWidth) { |
| 294 | #if defined(_WIN32) |
no outgoing calls
no test coverage detected