MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ImTextCalcWordWrapNextLineStart

Function ImTextCalcWordWrapNextLineStart

3rdparty/imgui/src/imgui_draw.cpp:5464–5472  ·  view source on GitHub ↗

Trim trailing space and find beginning of next line

Source from the content-addressed store, hash-verified

5462
5463// Trim trailing space and find beginning of next line
5464const char* ImTextCalcWordWrapNextLineStart(const char* text, const char* text_end, ImDrawTextFlags flags)
5465{
5466 if ((flags & ImDrawTextFlags_WrapKeepBlanks) == 0)
5467 while (text < text_end && ImCharIsBlankA(*text))
5468 text++;
5469 if (text < text_end && *text == '\n')
5470 text++;
5471 return text;
5472}
5473
5474void ImTextClassifierClear(ImU32* bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class)
5475{

Callers 2

ImFontCalcTextSizeExFunction · 0.85
RenderTextMethod · 0.85

Calls 1

ImCharIsBlankAFunction · 0.85

Tested by

no test coverage detected