Trim trailing space and find beginning of next line
| 5462 | |
| 5463 | // Trim trailing space and find beginning of next line |
| 5464 | const char* ImTextCalcWordWrapNextLineStart(const char* text, const char* text_end, ImDrawTextFlags flags) |
| 5465 | { |
| 5466 | if ((flags & ImDrawTextFlags_WrapKeepBlanks) == 0) |
| 5467 | while (text < text_end && ImCharIsBlankA(*text)) |
| 5468 | text++; |
| 5469 | if (text < text_end && *text == '\n') |
| 5470 | text++; |
| 5471 | return text; |
| 5472 | } |
| 5473 | |
| 5474 | void ImTextClassifierClear(ImU32* bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class) |
| 5475 | { |
no test coverage detected