MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / ImStrSkipBlank

Function ImStrSkipBlank

Dependencies/ImGui/src/imgui.cpp:2137–2142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2135}
2136
2137const char* ImStrSkipBlank(const char* str)
2138{
2139 while (str[0] == ' ' || str[0] == '\t')
2140 str++;
2141 return str;
2142}
2143
2144// A) MSVC version appears to return -1 on overflow, whereas glibc appears to return total count (which may be >= buf_size).
2145// Ideally we would test for only one of those limits at runtime depending on the behavior the vsnprintf(), but trying to deduct it at compile time sounds like a pandora can of worm.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected