Wrapping skips upcoming blanks
| 3406 | |
| 3407 | // Wrapping skips upcoming blanks |
| 3408 | static inline const char* CalcWordWrapNextLineStartA(const char* text, const char* text_end) |
| 3409 | { |
| 3410 | while (text < text_end && ImCharIsBlankA(*text)) |
| 3411 | text++; |
| 3412 | if (*text == '\n') |
| 3413 | text++; |
| 3414 | return text; |
| 3415 | } |
| 3416 | |
| 3417 | // Simple word-wrapping for English, not full-featured. Please submit failing cases! |
| 3418 | // This will return the next location to wrap from. If no wrapping if necessary, this will fast-forward to e.g. text_end. |
no test coverage detected