MCPcopy Create free account
hub / github.com/RenderKit/embree / ImParseFormatFindStart

Function ImParseFormatFindStart

tutorials/common/imgui/imgui_widgets.cpp:3171–3182  ·  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

3169
3170// We don't use strchr() because our strings are usually very short and often start with '%'
3171const char* ImParseFormatFindStart(const char* fmt)
3172{
3173 while (char c = fmt[0])
3174 {
3175 if (c == '%' && fmt[1] != '%')
3176 return fmt;
3177 else if (c == '%')
3178 fmt++;
3179 fmt++;
3180 }
3181 return fmt;
3182}
3183
3184const char* ImParseFormatFindEnd(const char* fmt)
3185{

Callers 3

ImParseFormatPrecisionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected