Trim trailing space and find beginning of next line
| 5477 | |
| 5478 | // Trim trailing space and find beginning of next line |
| 5479 | const char* ImTextCalcWordWrapNextLineStart(const char* text, const char* text_end, ImDrawTextFlags flags) |
| 5480 | { |
| 5481 | if ((flags & ImDrawTextFlags_WrapKeepBlanks) == 0) |
| 5482 | while (text < text_end && ImCharIsBlankA(*text)) |
| 5483 | text++; |
| 5484 | if (text < text_end && *text == '\n') |
| 5485 | text++; |
| 5486 | return text; |
| 5487 | } |
| 5488 | |
| 5489 | void ImTextClassifierClear(ImU32* bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class) |
| 5490 | { |
no test coverage detected