MCPcopy Create free account
hub / github.com/RenderKit/embree / CalcWordWrapNextLineStartA

Function CalcWordWrapNextLineStartA

tutorials/common/imgui/imgui_draw.cpp:3336–3343  ·  view source on GitHub ↗

Wrapping skips upcoming blanks

Source from the content-addressed store, hash-verified

3334
3335// Wrapping skips upcoming blanks
3336static 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.

Callers 2

CalcTextSizeAMethod · 0.85
RenderTextMethod · 0.85

Calls 1

ImCharIsBlankAFunction · 0.85

Tested by

no test coverage detected