Wrapping skips upcoming blanks
| 3334 | |
| 3335 | // Wrapping skips upcoming blanks |
| 3336 | static inline const char* CalcWordWrapNextLineStartA(const char* text, const char* text_end) |
| 3337 | { |
| 3338 | while (text < text_end && ImCharIsBlankA(*text)) |
| 3339 | text++; |
| 3340 | if (*text == '\n') |
| 3341 | text++; |
| 3342 | return text; |
| 3343 | } |
| 3344 | |
| 3345 | // Simple word-wrapping for English, not full-featured. Please submit failing cases! |
| 3346 | // 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