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

Function ImTextClassifierSetCharClassFromStr

3rdparty/imgui/src/imgui_draw.cpp:5489–5498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5487}
5488
5489void ImTextClassifierSetCharClassFromStr(ImU32* bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class, const char* s)
5490{
5491 const char* s_end = s + strlen(s);
5492 while (*s)
5493 {
5494 unsigned int c;
5495 s += ImTextCharFromUtf8(&c, s, s_end);
5496 ImTextClassifierSetCharClass(bits, codepoint_min, codepoint_end, char_class, c);
5497 }
5498}
5499
5500#define ImTextClassifierGet(_BITS, _CHAR_OFFSET) ((_BITS[(_CHAR_OFFSET) >> 4] >> (((_CHAR_OFFSET) & 15) << 1)) & 0x03)
5501

Callers 1

ImTextInitClassifiersFunction · 0.85

Calls 2

ImTextCharFromUtf8Function · 0.85

Tested by

no test coverage detected