MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / ImTextCalcWordWrapNextLineStart

Function ImTextCalcWordWrapNextLineStart

external/imgui/imgui_draw.cpp:5479–5487  ·  view source on GitHub ↗

Trim trailing space and find beginning of next line

Source from the content-addressed store, hash-verified

5477
5478// Trim trailing space and find beginning of next line
5479const char* ImTextCalcWordWrapNextLineStart(const char* text, const char* text_end, ImDrawTextFlags flags)
5480{
5481 if ((flags & ImDrawTextFlags_WrapKeepBlanks) == 0)
5482 while (text < text_end && ImCharIsBlankA(*text))
5483 text++;
5484 if (text < text_end && *text == '\n')
5485 text++;
5486 return text;
5487}
5488
5489void ImTextClassifierClear(ImU32* bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class)
5490{

Callers 2

ImFontCalcTextSizeExFunction · 0.85
RenderTextMethod · 0.85

Calls 1

ImCharIsBlankAFunction · 0.85

Tested by

no test coverage detected