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