Not optimal but we very rarely use this function.
| 2213 | |
| 2214 | // Not optimal but we very rarely use this function. |
| 2215 | int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end) |
| 2216 | { |
| 2217 | unsigned int unused = 0; |
| 2218 | return ImTextCharFromUtf8(&unused, in_text, in_text_end); |
| 2219 | } |
| 2220 | |
| 2221 | static inline int ImTextCountUtf8BytesFromChar(unsigned int c) |
| 2222 | { |
no test coverage detected