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

Function ImParseFormatFindStart

KBotExt/imgui/imgui_widgets.cpp:3243–3254  ·  view source on GitHub ↗

We don't use strchr() because our strings are usually very short and often start with '%'

Source from the content-addressed store, hash-verified

3241
3242// We don't use strchr() because our strings are usually very short and often start with '%'
3243const char* ImParseFormatFindStart(const char* fmt)
3244{
3245 while (char c = fmt[0])
3246 {
3247 if (c == '%' && fmt[1] != '%')
3248 return fmt;
3249 else if (c == '%')
3250 fmt++;
3251 fmt++;
3252 }
3253 return fmt;
3254}
3255
3256const char* ImParseFormatFindEnd(const char* fmt)
3257{

Callers 3

ImParseFormatPrecisionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected