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.
| 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. |
| 2392 | const 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) |
no outgoing calls
no test coverage detected