MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / CalcWordWrapNextLineStartA

Function CalcWordWrapNextLineStartA

KBotExt/imgui/imgui_draw.cpp:3408–3415  ·  view source on GitHub ↗

Wrapping skips upcoming blanks

Source from the content-addressed store, hash-verified

3406
3407// Wrapping skips upcoming blanks
3408static 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.

Callers 2

CalcTextSizeAMethod · 0.85
RenderTextMethod · 0.85

Calls 1

ImCharIsBlankAFunction · 0.85

Tested by

no test coverage detected