MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ImTextFindPreviousUtf8Codepoint

Function ImTextFindPreviousUtf8Codepoint

3rdparty/imgui/src/imgui.cpp:2777–2786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2775}
2776
2777const 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
2788const char* ImTextFindValidUtf8CodepointEnd(const char* in_text_start, const char* in_text_end, const char* in_p)
2789{

Calls

no outgoing calls

Tested by

no test coverage detected