| 1536 | } |
| 1537 | |
| 1538 | static |
| 1539 | string_view |
| 1540 | make_key( |
| 1541 | std::size_t i, |
| 1542 | char* buf) |
| 1543 | { |
| 1544 | int constexpr base = 62; |
| 1545 | char const* const alphabet = |
| 1546 | "0123456789" |
| 1547 | "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 1548 | "abcdefghijklmnopqrstuvwxyz"; |
| 1549 | char* dest = buf; |
| 1550 | do |
| 1551 | { |
| 1552 | *dest++ = alphabet[i%base]; |
| 1553 | i /= base; |
| 1554 | } |
| 1555 | while(i); |
| 1556 | return { buf, static_cast< |
| 1557 | std::size_t>(dest-buf) }; |
| 1558 | } |
| 1559 | |
| 1560 | void |
| 1561 | testCollisions() |
nothing calls this directly
no outgoing calls
no test coverage detected