| 2775 | } |
| 2776 | |
| 2777 | const char* ImTextFindPreviousUtf8Codepoint(const char* in_text_start, const char* in_p) |
| 2778 | { |
| 2779 | while (in_p > in_text_start) |
| 2780 | { |
| 2781 | in_p--; |
| 2782 | if ((*in_p & 0xC0) != 0x80) |
| 2783 | return in_p; |
| 2784 | } |
| 2785 | return in_text_start; |
| 2786 | } |
| 2787 | |
| 2788 | const char* ImTextFindValidUtf8CodepointEnd(const char* in_text_start, const char* in_text_end, const char* in_p) |
| 2789 | { |
no outgoing calls
no test coverage detected