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