MCPcopy Create free account
hub / github.com/cinder/Cinder / ImHashSkipUncontributingPrefix

Function ImHashSkipUncontributingPrefix

src/imgui/imgui.cpp:2392–2399  ·  view source on GitHub ↗

Skip to the "###" marker if any. We don't skip past to match the behavior of GetID() FIXME-OPT: This is not designed to be optimal. Use with care.

Source from the content-addressed store, hash-verified

2390// Skip to the "###" marker if any. We don't skip past to match the behavior of GetID()
2391// FIXME-OPT: This is not designed to be optimal. Use with care.
2392const char* ImHashSkipUncontributingPrefix(const char* label)
2393{
2394 const char* result = label;
2395 while (unsigned char c = *label++)
2396 if (c == '#' && label[0] == '#' && label[1] == '#')
2397 result = label - 1;
2398 return result;
2399}
2400
2401//-----------------------------------------------------------------------------
2402// [SECTION] MISC HELPERS/UTILITIES (File functions)

Callers 2

StackToolFormatLevelInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected