Not optimal but we very rarely use this function.
| 1683 | |
| 1684 | // Not optimal but we very rarely use this function. |
| 1685 | int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end) |
| 1686 | { |
| 1687 | unsigned int dummy = 0; |
| 1688 | return ImTextCharFromUtf8(&dummy, in_text, in_text_end); |
| 1689 | } |
| 1690 | |
| 1691 | static inline int ImTextCountUtf8BytesFromChar(unsigned int c) |
| 1692 | { |
no test coverage detected