Not optimal but we very rarely use this function.
| 1788 | |
| 1789 | // Not optimal but we very rarely use this function. |
| 1790 | int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end) |
| 1791 | { |
| 1792 | unsigned int unused = 0; |
| 1793 | return ImTextCharFromUtf8(&unused, in_text, in_text_end); |
| 1794 | } |
| 1795 | |
| 1796 | static inline int ImTextCountUtf8BytesFromChar(unsigned int c) |
| 1797 | { |
no test coverage detected