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

Function ImTextClassifierSetCharClass

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

Source from the content-addressed store, hash-verified

5478}
5479
5480void ImTextClassifierSetCharClass(ImU32* bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class, unsigned int c)
5481{
5482 IM_ASSERT(c >= codepoint_min && c < codepoint_end);
5483 IM_UNUSED(codepoint_end);
5484 c -= codepoint_min;
5485 const ImU32 shift = (c & 15) << 1;
5486 bits[c >> 4] = (bits[c >> 4] & ~(0x03 << shift)) | (char_class << shift);
5487}
5488
5489void ImTextClassifierSetCharClassFromStr(ImU32* bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class, const char* s)
5490{

Callers 3

ImTextClassifierClearFunction · 0.85
ImTextInitClassifiersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected