MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / ImHashSkipUncontributingPrefix

Function ImHashSkipUncontributingPrefix

external/imgui/imgui.cpp:2514–2521  ·  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

2512// Skip to the "###" marker if any. We don't skip past to match the behavior of GetID()
2513// FIXME-OPT: This is not designed to be optimal. Use with care.
2514const char* ImHashSkipUncontributingPrefix(const char* label)
2515{
2516 const char* result = label;
2517 while (unsigned char c = *label++)
2518 if (c == '#' && label[0] == '#' && label[1] == '#')
2519 result = label + 2;
2520 return result;
2521}
2522
2523//-----------------------------------------------------------------------------
2524// [SECTION] MISC HELPERS/UTILITIES (File functions)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected