MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ImHashSkipUncontributingPrefix

Function ImHashSkipUncontributingPrefix

3rdparty/imgui/src/imgui.cpp:2509–2516  ·  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

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

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected