| 5478 | } |
| 5479 | |
| 5480 | void 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 | |
| 5489 | void ImTextClassifierSetCharClassFromStr(ImU32* bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class, const char* s) |
| 5490 | { |
no outgoing calls
no test coverage detected